web_config_entity.g.dart 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import 'package:hengyi/generated/json/base/json_convert_content.dart';
  2. import 'package:hengyi/data/web_config_entity.dart';
  3. WebConfigEntity $WebConfigEntityFromJson(Map<String, dynamic> json) {
  4. final WebConfigEntity webConfigEntity = WebConfigEntity();
  5. final String? configPhone = jsonConvert.convert<String>(json['config_phone']);
  6. if (configPhone != null) {
  7. webConfigEntity.configPhone = configPhone;
  8. }
  9. final String? configAddress = jsonConvert.convert<String>(json['config_address']);
  10. if (configAddress != null) {
  11. webConfigEntity.configAddress = configAddress;
  12. }
  13. final String? configWechatUrl = jsonConvert.convert<String>(json['config_wechat_url']);
  14. if (configWechatUrl != null) {
  15. webConfigEntity.configWechatUrl = configWechatUrl;
  16. }
  17. final String? configWebName = jsonConvert.convert<String>(json['config_web_name']);
  18. if (configWebName != null) {
  19. webConfigEntity.configWebName = configWebName;
  20. }
  21. final String? configWebBeian = jsonConvert.convert<String>(json['config_web_beian']);
  22. if (configWebBeian != null) {
  23. webConfigEntity.configWebBeian = configWebBeian;
  24. }
  25. final String? configWebZhuti = jsonConvert.convert<String>(json['config_web_zhuti']);
  26. if (configWebZhuti != null) {
  27. webConfigEntity.configWebZhuti = configWebZhuti;
  28. }
  29. final String? configContent = jsonConvert.convert<String>(json['config_content']);
  30. if (configContent != null) {
  31. webConfigEntity.configContent = configContent;
  32. }
  33. return webConfigEntity;
  34. }
  35. Map<String, dynamic> $WebConfigEntityToJson(WebConfigEntity entity) {
  36. final Map<String, dynamic> data = <String, dynamic>{};
  37. data['config_phone'] = entity.configPhone;
  38. data['config_address'] = entity.configAddress;
  39. data['config_wechat_url'] = entity.configWechatUrl;
  40. data['config_web_name'] = entity.configWebName;
  41. data['config_web_beian'] = entity.configWebBeian;
  42. data['config_web_zhuti'] = entity.configWebZhuti;
  43. data['config_content'] = entity.configContent;
  44. return data;
  45. }