web_config_entity.dart 924 B

123456789101112131415161718192021222324252627282930313233
  1. import 'package:fuwei/generated/json/base/json_field.dart';
  2. import 'package:fuwei/generated/json/web_config_entity.g.dart';
  3. import 'dart:convert';
  4. @JsonSerializable()
  5. class WebConfigEntity {
  6. @JSONField(name: "config_phone")
  7. late String configPhone;
  8. @JSONField(name: "config_address")
  9. late String configAddress;
  10. @JSONField(name: "config_wechat_url")
  11. late String configWechatUrl;
  12. @JSONField(name: "config_web_name")
  13. late String configWebName;
  14. @JSONField(name: "config_web_beian")
  15. late String configWebBeian;
  16. @JSONField(name: "config_web_zhuti")
  17. late String configWebZhuti;
  18. @JSONField(name: "config_content")
  19. late String configContent;
  20. WebConfigEntity();
  21. factory WebConfigEntity.fromJson(Map<String, dynamic> json) =>
  22. $WebConfigEntityFromJson(json);
  23. Map<String, dynamic> toJson() => $WebConfigEntityToJson(this);
  24. @override
  25. String toString() {
  26. return jsonEncode(this);
  27. }
  28. }