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.
aku_new_community/lib/model/manager/fixed_detail_model.dart

135 lines
3.7 KiB

import 'package:aku_community/model/common/img_model.dart';
class FixedDetailModel {
3 years ago
AppReportRepairVo? appReportRepairVo;
List<AppProcessRecordVo>? appProcessRecordVo;
Null appMaintenanceResultVo;
3 years ago
AppDispatchListVo? appDispatchListVo;
FixedDetailModel(
{this.appReportRepairVo,
this.appProcessRecordVo,
this.appMaintenanceResultVo,
this.appDispatchListVo});
FixedDetailModel.fromJson(Map<String, dynamic> json) {
appReportRepairVo = json['appReportRepairVo'] != null
? new AppReportRepairVo.fromJson(json['appReportRepairVo'])
: null;
if (json['appProcessRecordVo'] != null) {
4 years ago
appProcessRecordVo = [];
json['appProcessRecordVo'].forEach((v) {
3 years ago
appProcessRecordVo!.add(new AppProcessRecordVo.fromJson(v));
});
}
appMaintenanceResultVo = json['appMaintenanceResultVo'];
4 years ago
appDispatchListVo = json['appDispatchListVo'] != null
? new AppDispatchListVo.fromJson(json['appDispatchListVo'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.appReportRepairVo != null) {
3 years ago
data['appReportRepairVo'] = this.appReportRepairVo!.toJson();
}
if (this.appProcessRecordVo != null) {
data['appProcessRecordVo'] =
3 years ago
this.appProcessRecordVo!.map((v) => v.toJson()).toList();
}
data['appMaintenanceResultVo'] = this.appMaintenanceResultVo;
if (this.appDispatchListVo != null) {
3 years ago
data['appDispatchListVo'] = this.appDispatchListVo!.toJson();
}
return data;
}
}
class AppReportRepairVo {
3 years ago
int? id;
int? type;
int? status;
String? reportDetail;
List<ImgModel>? imgUrls;
AppReportRepairVo(
{this.id, this.type, this.status, this.reportDetail, this.imgUrls});
AppReportRepairVo.fromJson(Map<String, dynamic> json) {
id = json['id'];
type = json['type'];
status = json['status'];
reportDetail = json['reportDetail'];
if (json['imgUrls'] != null) {
4 years ago
imgUrls = [];
json['imgUrls'].forEach((v) {
3 years ago
imgUrls!.add(new ImgModel.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) {
3 years ago
data['imgUrls'] = this.imgUrls!.map((v) => v.toJson()).toList();
}
return data;
}
}
class AppProcessRecordVo {
3 years ago
String? operationDate;
int? operationType;
AppProcessRecordVo({this.operationDate, this.operationType});
AppProcessRecordVo.fromJson(Map<String, dynamic> json) {
operationDate = json['operationDate'];
operationType = json['operationType'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['operationDate'] = this.operationDate;
data['operationType'] = this.operationType;
return data;
}
}
class AppDispatchListVo {
3 years ago
String? code;
String? orderDate;
int? type;
String? operatorName;
String? distributorName;
AppDispatchListVo(
{this.code,
this.orderDate,
this.type,
this.operatorName,
this.distributorName});
AppDispatchListVo.fromJson(Map<String, dynamic> json) {
code = json['code'];
orderDate = json['orderDate'];
type = json['type'];
operatorName = json['operatorName'];
distributorName = json['distributorName'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['orderDate'] = this.orderDate;
data['type'] = this.type;
data['operatorName'] = this.operatorName;
data['distributorName'] = this.distributorName;
return data;
}
}