class GoodsPicModel { String api; Data data; List ret; String v; GoodsPicModel({this.api, this.data, this.ret, this.v}); GoodsPicModel.fromJson(Map json) { api = json['api']; data = json['data'] != null ? new Data.fromJson(json['data']) : null; ret = json['ret'].cast(); v = json['v']; } Map toJson() { final Map data = new Map(); data['api'] = this.api; if (this.data != null) { data['data'] = this.data.toJson(); } data['ret'] = this.ret; data['v'] = this.v; return data; } } class Data { List pages; List images; Data({this.pages, this.images}); Data.fromJson(Map json) { pages = json['pages'].cast(); images = json['images'].cast(); } Map toJson() { final Map data = new Map(); data['pages'] = this.pages; data['images'] = this.images; return data; } }