parent
727333af5f
commit
c2cf7e7f6f
@ -0,0 +1,63 @@
|
||||
class FixedSubmitModel {
|
||||
int id;
|
||||
int type;
|
||||
int status;
|
||||
String reportDetail;
|
||||
List<ImgUrls> imgUrls;
|
||||
|
||||
FixedSubmitModel(
|
||||
{this.id, this.type, this.status, this.reportDetail, this.imgUrls});
|
||||
|
||||
FixedSubmitModel.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
type = json['type'];
|
||||
status = json['status'];
|
||||
reportDetail = json['reportDetail'];
|
||||
if (json['imgUrls'] != null) {
|
||||
imgUrls = new List<ImgUrls>();
|
||||
json['imgUrls'].forEach((v) {
|
||||
imgUrls.add(new ImgUrls.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['type'] = this.type;
|
||||
data['status'] = this.status;
|
||||
data['reportDetail'] = this.reportDetail;
|
||||
if (this.imgUrls != null) {
|
||||
data['imgUrls'] = this.imgUrls.map((v) => v.toJson()).toList();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class ImgUrls {
|
||||
String url;
|
||||
String size;
|
||||
int longs;
|
||||
int paragraph;
|
||||
int sort;
|
||||
|
||||
ImgUrls({this.url, this.size, this.longs, this.paragraph, this.sort});
|
||||
|
||||
ImgUrls.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;
|
||||
}
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
class BeeMap {
|
||||
Map<int, String> fixTag = {
|
||||
0: '公区报修',
|
||||
1: '家庭报修',
|
||||
1: '公区报修',
|
||||
2: '家庭报修',
|
||||
};
|
||||
|
||||
Map<int, String> fixState = {0: '待分配', 1: '维修中', 2: '已处理',3:'已完成',4:'已取消'};
|
||||
Map<int, String> fixState = {1: '待分配', 2: '未接单', 3: '处理中',4:'已处理',5:'已完成',6:'已关闭',7:'已作废'};
|
||||
}
|
||||
|
Loading…
Reference in new issue