import 'ImgVO.dart'; class MaintJobDetailResponse { int? code; MaintJobDetailData? data; String? msg; MaintJobDetailResponse({this.code, this.data, this.msg}); MaintJobDetailResponse.fromJson(Map json) { code = json['code']; data = json['data'] != null ? new MaintJobDetailData.fromJson(json['data']) : null; msg = json['msg']; } Map toJson() { final Map data = new Map(); data['code'] = this.code; if (this.data != null) { data['data'] = this.data!.toJson(); } data['msg'] = this.msg; return data; } } class MaintJobDetailData { int? id; String? jobName; String? jobNum; String? planName; String? planNum; int? status; String? startTime; String? endTime; int? cycleType; String? planRemarks; String? closeReason; String? closePerson; String? closeTime; List? fileUrls; String? creator; String? itemsList; List? maintEquipmentVOList; List? logs; String? customer; String? channel; int? prodCount; String? maintStaffName; String? finishTime; @override String toString() { return 'MaintJobDetailData{id: $id, jobName: $jobName, jobNum: $jobNum, planName: $planName, planNum: $planNum, status: $status, startTime: $startTime, endTime: $endTime, cycleType: $cycleType, planRemarks: $planRemarks, closeReason: $closeReason, closePerson: $closePerson, closeTime: $closeTime, fileUrls: $fileUrls, creator: $creator, itemsList: $itemsList, maintEquipmentVOList: $maintEquipmentVOList, logs: $logs, customer: $customer, channel: $channel, prodCount: $prodCount, maintStaffName: $maintStaffName, finishTime: $finishTime}'; } MaintJobDetailData( {this.id, this.jobName, this.jobNum, this.planName, this.planNum, this.status, this.startTime, this.endTime, this.cycleType, this.planRemarks, this.closeReason, this.closePerson, this.closeTime, this.fileUrls, this.creator, this.itemsList, this.maintEquipmentVOList, this.logs, this.customer, this.channel, this.prodCount, this.maintStaffName, this.finishTime}); MaintJobDetailData.fromJson(Map json) { id = json['id']; jobName = json['jobName']; jobNum = json['jobNum']; planName = json['planName']; planNum = json['planNum']; status = json['status']; startTime = json['startTime']; endTime = json['endTime']; cycleType = json['cycleType']; planRemarks = json['planRemarks']; closeReason = json['closeReason']; closePerson = json['closePerson']; closeTime = json['closeTime']; if (json['fileUrls'] != null) { fileUrls = []; json['fileUrls'].forEach((v) { fileUrls!.add(new FileUrls.fromJson(v)); }); } creator = json['creator']; itemsList = json['itemsList']; if (json['maintEquipmentVOList'] != null) { maintEquipmentVOList = []; json['maintEquipmentVOList'].forEach((v) { maintEquipmentVOList!.add(new MaintEquipmentVOList.fromJson(v)); }); } if (json['logs'] != null) { logs = []; json['logs'].forEach((v) { logs!.add(new Logs.fromJson(v)); }); } customer = json['customer']; channel = json['channel']; prodCount = json['prodCount']; maintStaffName = json['maintStaffName']; finishTime = json['finishTime']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['jobName'] = this.jobName; data['jobNum'] = this.jobNum; data['planName'] = this.planName; data['planNum'] = this.planNum; data['status'] = this.status; data['startTime'] = this.startTime; data['endTime'] = this.endTime; data['cycleType'] = this.cycleType; data['planRemarks'] = this.planRemarks; data['closeReason'] = this.closeReason; data['closePerson'] = this.closePerson; data['closeTime'] = this.closeTime; if (this.fileUrls != null) { data['fileUrls'] = this.fileUrls!.map((v) => v.toJson()).toList(); } data['creator'] = this.creator; data['itemsList'] = this.itemsList; if (this.maintEquipmentVOList != null) { data['maintEquipmentVOList'] = this.maintEquipmentVOList!.map((v) => v.toJson()).toList(); } if (this.logs != null) { data['logs'] = this.logs!.map((v) => v.toJson()).toList(); } data['customer'] = this.customer; data['channel'] = this.channel; data['prodCount'] = this.prodCount; data['maintStaffName'] = this.maintStaffName; data['finishTime'] = this.finishTime; return data; } } class MaintEquipmentVOList { String? productName; List? deviceList; MaintEquipmentVOList({this.productName, this.deviceList}); MaintEquipmentVOList.fromJson(Map json) { productName = json['productName']; if (json['deviceList'] != null) { deviceList = []; json['deviceList'].forEach((v) { deviceList!.add(new DeviceList.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['productName'] = this.productName; if (this.deviceList != null) { data['deviceList'] = this.deviceList!.map((v) => v.toJson()).toList(); } return data; } } class DeviceList { int? id; String? name; String? showName; String? deviceKey; int? authType; int? isEnable; int? isActive; String? deviceSecret; String? deviceId; String? productName; String? productKey; int? productId; int? status; int? nodeType; String? connectionProtocol; String? ip; String? lastUpdateOn; String? activationOn; int? positionId; String? number; String? speedA; String? speedB; String? finenessA; String? finenessB; String? holeCountA; String? holeCountB; String? activePeriod; String? createdOn; String? lastOnlineOn; String? iotId; String? description; String? customerId; int? channelId; String? imei; DeviceList( {this.id, this.name, this.showName, this.deviceKey, this.authType, this.isEnable, this.isActive, this.deviceSecret, this.deviceId, this.productName, this.productKey, this.productId, this.status, this.nodeType, this.connectionProtocol, this.ip, this.lastUpdateOn, this.activationOn, this.positionId, this.number, this.speedA, this.speedB, this.finenessA, this.finenessB, this.holeCountA, this.holeCountB, this.activePeriod, this.createdOn, this.lastOnlineOn, this.iotId, this.description, this.customerId, this.channelId, this.imei}); DeviceList.fromJson(Map json) { id = json['id']; name = json['name']; showName = json['showName']; deviceKey = json['deviceKey']; authType = json['authType']; isEnable = json['isEnable']; isActive = json['isActive']; deviceSecret = json['deviceSecret']; deviceId = json['deviceId']; productName = json['productName']; productKey = json['productKey']; productId = json['productId']; status = json['status']; nodeType = json['nodeType']; connectionProtocol = json['connectionProtocol']; ip = json['ip']; lastUpdateOn = json['lastUpdateOn']; activationOn = json['activationOn']; positionId = json['positionId']; number = json['number']; speedA = json['speedA']; speedB = json['speedB']; finenessA = json['finenessA']; finenessB = json['finenessB']; holeCountA = json['holeCountA']; holeCountB = json['holeCountB']; activePeriod = json['activePeriod']; createdOn = json['createdOn']; lastOnlineOn = json['lastOnlineOn']; iotId = json['iotId']; description = json['description']; customerId = json['customerId']; channelId = json['channelId']; imei = json['imei']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['name'] = this.name; data['showName'] = this.showName; data['deviceKey'] = this.deviceKey; data['authType'] = this.authType; data['isEnable'] = this.isEnable; data['isActive'] = this.isActive; data['deviceSecret'] = this.deviceSecret; data['deviceId'] = this.deviceId; data['productName'] = this.productName; data['productKey'] = this.productKey; data['productId'] = this.productId; data['status'] = this.status; data['nodeType'] = this.nodeType; data['connectionProtocol'] = this.connectionProtocol; data['ip'] = this.ip; data['lastUpdateOn'] = this.lastUpdateOn; data['activationOn'] = this.activationOn; data['positionId'] = this.positionId; data['number'] = this.number; data['speedA'] = this.speedA; data['speedB'] = this.speedB; data['finenessA'] = this.finenessA; data['finenessB'] = this.finenessB; data['holeCountA'] = this.holeCountA; data['holeCountB'] = this.holeCountB; data['activePeriod'] = this.activePeriod; data['createdOn'] = this.createdOn; data['lastOnlineOn'] = this.lastOnlineOn; data['iotId'] = this.iotId; data['description'] = this.description; data['customerId'] = this.customerId; data['channelId'] = this.channelId; data['imei'] = this.imei; return data; } } class Logs { String? createTime; String? updateTime; int? creator; int? updater; int? id; String? userName; String? description; int? maintJobId; Logs( {this.createTime, this.updateTime, this.creator, this.updater, this.id, this.userName, this.description, this.maintJobId}); Logs.fromJson(Map json) { createTime = json['createTime']; updateTime = json['updateTime']; creator = json['creator']; updater = json['updater']; id = json['id']; userName = json['userName']; description = json['description']; maintJobId = json['maintJobId']; } Map toJson() { final Map data = new Map(); data['createTime'] = this.createTime; data['updateTime'] = this.updateTime; data['creator'] = this.creator; data['updater'] = this.updater; data['id'] = this.id; data['userName'] = this.userName; data['description'] = this.description; data['maintJobId'] = this.maintJobId; return data; } }