|
|
@ -6,6 +6,7 @@ class GoodsOutModel {
|
|
|
|
int approach;
|
|
|
|
int approach;
|
|
|
|
int status;
|
|
|
|
int status;
|
|
|
|
String movingCompanyTel;
|
|
|
|
String movingCompanyTel;
|
|
|
|
|
|
|
|
List<ImgUrl> imgUrl;
|
|
|
|
|
|
|
|
|
|
|
|
GoodsOutModel(
|
|
|
|
GoodsOutModel(
|
|
|
|
{this.id,
|
|
|
|
{this.id,
|
|
|
@ -14,7 +15,8 @@ class GoodsOutModel {
|
|
|
|
this.expectedTime,
|
|
|
|
this.expectedTime,
|
|
|
|
this.approach,
|
|
|
|
this.approach,
|
|
|
|
this.status,
|
|
|
|
this.status,
|
|
|
|
this.movingCompanyTel});
|
|
|
|
this.movingCompanyTel,
|
|
|
|
|
|
|
|
this.imgUrl});
|
|
|
|
|
|
|
|
|
|
|
|
GoodsOutModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
GoodsOutModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
id = json['id'];
|
|
|
|
id = json['id'];
|
|
|
@ -24,6 +26,12 @@ class GoodsOutModel {
|
|
|
|
approach = json['approach'];
|
|
|
|
approach = json['approach'];
|
|
|
|
status = json['status'];
|
|
|
|
status = json['status'];
|
|
|
|
movingCompanyTel = json['movingCompanyTel'];
|
|
|
|
movingCompanyTel = json['movingCompanyTel'];
|
|
|
|
|
|
|
|
if (json['imgUrl'] != null) {
|
|
|
|
|
|
|
|
imgUrl = new List<ImgUrl>();
|
|
|
|
|
|
|
|
json['imgUrl'].forEach((v) {
|
|
|
|
|
|
|
|
imgUrl.add(new ImgUrl.fromJson(v));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
@ -35,6 +43,37 @@ class GoodsOutModel {
|
|
|
|
data['approach'] = this.approach;
|
|
|
|
data['approach'] = this.approach;
|
|
|
|
data['status'] = this.status;
|
|
|
|
data['status'] = this.status;
|
|
|
|
data['movingCompanyTel'] = this.movingCompanyTel;
|
|
|
|
data['movingCompanyTel'] = this.movingCompanyTel;
|
|
|
|
|
|
|
|
if (this.imgUrl != null) {
|
|
|
|
|
|
|
|
data['imgUrl'] = this.imgUrl.map((v) => v.toJson()).toList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ImgUrl {
|
|
|
|
|
|
|
|
String url;
|
|
|
|
|
|
|
|
String size;
|
|
|
|
|
|
|
|
int longs;
|
|
|
|
|
|
|
|
int paragraph;
|
|
|
|
|
|
|
|
int sort;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ImgUrl({this.url, this.size, this.longs, this.paragraph, this.sort});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ImgUrl.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
|
|
url = json['url'];
|
|
|
|
|
|
|
|
size = json['size'];
|
|
|
|
|
|
|
|
longs = json['longs'];
|
|
|
|
|
|
|
|
paragraph = json['paragraph'];
|
|
|
|
|
|
|
|
sort = json['sort'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
|
|
|
data['url'] = this.url;
|
|
|
|
|
|
|
|
data['size'] = this.size;
|
|
|
|
|
|
|
|
data['longs'] = this.longs;
|
|
|
|
|
|
|
|
data['paragraph'] = this.paragraph;
|
|
|
|
|
|
|
|
data['sort'] = this.sort;
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|