web_config_entity.g.dart 2.0 KB

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