industry_data.dart 914 B

123456789101112131415161718192021222324252627282930
  1. class IndustryData {
  2. final num? industryId;
  3. final String? industryName;
  4. final String? industryImageNew;
  5. final String? yypayIcon;
  6. final String? industryImage;
  7. final num? sort;
  8. IndustryData(
  9. {this.industryId, this.industryName, this.industryImageNew, this.yypayIcon, this.industryImage, this.sort,});
  10. factory IndustryData.fromJson(Map<String, dynamic> json) {
  11. return IndustryData(industryId: json['industry_id'],
  12. industryName: json['industry_name'],
  13. industryImageNew: json['industry_image_new'],
  14. yypayIcon: json['yypay_icon'],
  15. industryImage: json['industry_image'],
  16. sort: json['sort'],);
  17. }
  18. Map<String, dynamic> toJson() =>
  19. {
  20. 'industryId': industryId,
  21. 'industryName': industryName,
  22. 'industryImageNew': industryImageNew,
  23. 'yypayIcon': yypayIcon,
  24. 'industryImage': industryImage,
  25. 'sort': sort,
  26. };
  27. }