| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378 |
- import 'ImgVO.dart';
- class MaintJobDetailResponse {
- int? code;
- MaintJobDetailData? data;
- String? msg;
- MaintJobDetailResponse({this.code, this.data, this.msg});
- MaintJobDetailResponse.fromJson(Map<String, dynamic> json) {
- code = json['code'];
- data = json['data'] != null ? new MaintJobDetailData.fromJson(json['data']) : null;
- msg = json['msg'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- 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>? fileUrls;
- String? creator;
- String? itemsList;
- List<MaintEquipmentVOList>? maintEquipmentVOList;
- List<Logs>? 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<String, dynamic> 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 = <FileUrls>[];
- json['fileUrls'].forEach((v) {
- fileUrls!.add(new FileUrls.fromJson(v));
- });
- }
- creator = json['creator'];
- itemsList = json['itemsList'];
- if (json['maintEquipmentVOList'] != null) {
- maintEquipmentVOList = <MaintEquipmentVOList>[];
- json['maintEquipmentVOList'].forEach((v) {
- maintEquipmentVOList!.add(new MaintEquipmentVOList.fromJson(v));
- });
- }
- if (json['logs'] != null) {
- logs = <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<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- 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>? deviceList;
- MaintEquipmentVOList({this.productName, this.deviceList});
- MaintEquipmentVOList.fromJson(Map<String, dynamic> json) {
- productName = json['productName'];
- if (json['deviceList'] != null) {
- deviceList = <DeviceList>[];
- json['deviceList'].forEach((v) {
- deviceList!.add(new DeviceList.fromJson(v));
- });
- }
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- 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<String, dynamic> 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<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- 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<String, dynamic> 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<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- 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;
- }
- }
|