基础库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
1.0 KiB

  1. class GoodsPicModel {
  2. String api;
  3. Data data;
  4. List<String> ret;
  5. String v;
  6. GoodsPicModel({this.api, this.data, this.ret, this.v});
  7. GoodsPicModel.fromJson(Map<String, dynamic> json) {
  8. api = json['api'];
  9. data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  10. ret = json['ret'].cast<String>();
  11. v = json['v'];
  12. }
  13. Map<String, dynamic> toJson() {
  14. final Map<String, dynamic> data = new Map<String, dynamic>();
  15. data['api'] = this.api;
  16. if (this.data != null) {
  17. data['data'] = this.data.toJson();
  18. }
  19. data['ret'] = this.ret;
  20. data['v'] = this.v;
  21. return data;
  22. }
  23. }
  24. class Data {
  25. List<String> pages;
  26. List<String> images;
  27. Data({this.pages, this.images});
  28. Data.fromJson(Map<String, dynamic> json) {
  29. pages = json['pages'].cast<String>();
  30. images = json['images'].cast<String>();
  31. }
  32. Map<String, dynamic> toJson() {
  33. final Map<String, dynamic> data = new Map<String, dynamic>();
  34. data['pages'] = this.pages;
  35. data['images'] = this.images;
  36. return data;
  37. }
  38. }