import 'package:bbyyy/beans/system_information_bean_entity.dart'; systemInformationBeanEntityFromJson(SystemInformationBeanEntity data, Map json) { if (json['type'] != null) { data.type = json['type'].toString(); } if (json['content'] != null) { data.content = SystemInformationBeanContent().fromJson(json['content']); } return data; } Map systemInformationBeanEntityToJson(SystemInformationBeanEntity entity) { final Map data = new Map(); data['type'] = entity.type; data['content'] = entity.content?.toJson(); return data; } systemInformationBeanContentFromJson(SystemInformationBeanContent data, Map json) { if (json['start_time'] != null) { data.startTime = json['start_time'].toString(); } if (json['content'] != null) { data.content = json['content'].toString(); } return data; } Map systemInformationBeanContentToJson(SystemInformationBeanContent entity) { final Map data = new Map(); data['start_time'] = entity.startTime; data['content'] = entity.content; return data; }