system_information_bean_entity_helper.dart 569 B

123456789101112131415161718
  1. import 'package:bbyyy/beans/system_information_bean_entity.dart';
  2. systemInformationBeanEntityFromJson(SystemInformationBeanEntity data, Map<String, dynamic> json) {
  3. if (json['type'] != null) {
  4. data.type = json['type'].toString();
  5. }
  6. if (json['content'] != null) {
  7. data.content = json['content'].toString();
  8. }
  9. return data;
  10. }
  11. Map<String, dynamic> systemInformationBeanEntityToJson(SystemInformationBeanEntity entity) {
  12. final Map<String, dynamic> data = new Map<String, dynamic>();
  13. data['type'] = entity.type;
  14. data['content'] = entity.content;
  15. return data;
  16. }