|
|
|
|
@ -163,6 +163,7 @@ class SearchWorkOrder {
|
|
|
|
|
Lookup currentSituation;
|
|
|
|
|
Lookup repairLocation;
|
|
|
|
|
Lookup reason;
|
|
|
|
|
|
|
|
|
|
// String startofWorkTime;
|
|
|
|
|
// String endofWorkTime;
|
|
|
|
|
num workingHours;
|
|
|
|
|
@ -250,6 +251,7 @@ class SearchWorkOrder {
|
|
|
|
|
woParentDto: woParentDto ?? this.woParentDto,
|
|
|
|
|
timer: timer ?? this.timer,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -352,6 +354,7 @@ class WoParentDto {
|
|
|
|
|
equipmentStatus = json['equipmentStatus'] != null ? Lookup.fromJson(json['equipmentStatus']) : null;
|
|
|
|
|
currentSituation = json['currentSituation'] != null ? Lookup.fromJson(json['currentSituation']) : null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Lookup callLastSituation;
|
|
|
|
|
SupplierModel supplier;
|
|
|
|
|
Lookup assetType;
|
|
|
|
|
@ -362,6 +365,7 @@ class WoParentDto {
|
|
|
|
|
List<SuppEngineerWorkOrders> suppEngineerWorkOrders;
|
|
|
|
|
Lookup equipmentStatus;
|
|
|
|
|
Lookup currentSituation;
|
|
|
|
|
|
|
|
|
|
WoParentDto copyWith({
|
|
|
|
|
Lookup callLastSituation,
|
|
|
|
|
SupplierModel supplier,
|
|
|
|
|
@ -386,6 +390,7 @@ class WoParentDto {
|
|
|
|
|
equipmentStatus: equipmentStatus ?? this.equipmentStatus,
|
|
|
|
|
currentSituation: currentSituation ?? this.currentSituation,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
if (callLastSituation != null) {
|
|
|
|
|
@ -436,6 +441,7 @@ class SuppEngineerWorkOrders {
|
|
|
|
|
externalEngCode = json['externalEngCode'];
|
|
|
|
|
email = json['email'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num supplierContactId;
|
|
|
|
|
String personName;
|
|
|
|
|
@ -443,6 +449,7 @@ class SuppEngineerWorkOrders {
|
|
|
|
|
String contact;
|
|
|
|
|
String externalEngCode;
|
|
|
|
|
String email;
|
|
|
|
|
|
|
|
|
|
SuppEngineerWorkOrders copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num supplierContactId,
|
|
|
|
|
@ -461,6 +468,7 @@ class SuppEngineerWorkOrders {
|
|
|
|
|
externalEngCode: externalEngCode ?? this.externalEngCode,
|
|
|
|
|
email: email ?? this.email,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -496,6 +504,7 @@ class StepsWorkOrderDto {
|
|
|
|
|
parentWOId = json['parentWOId'];
|
|
|
|
|
callId = json['callId'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num sequence;
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
@ -504,6 +513,7 @@ class StepsWorkOrderDto {
|
|
|
|
|
bool processed;
|
|
|
|
|
num parentWOId;
|
|
|
|
|
num callId;
|
|
|
|
|
|
|
|
|
|
StepsWorkOrderDto copyWith({
|
|
|
|
|
num sequence,
|
|
|
|
|
num id,
|
|
|
|
|
@ -524,6 +534,7 @@ class StepsWorkOrderDto {
|
|
|
|
|
parentWOId: parentWOId ?? this.parentWOId,
|
|
|
|
|
callId: callId ?? this.callId,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['sequence'] = sequence;
|
|
|
|
|
@ -612,6 +623,7 @@ class SupplierModel {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String suppliername;
|
|
|
|
|
String name;
|
|
|
|
|
@ -631,6 +643,7 @@ class SupplierModel {
|
|
|
|
|
List<Attachments> attachments;
|
|
|
|
|
List<SuppPersons> suppPersons;
|
|
|
|
|
List<SuppTCodes> suppTCodes;
|
|
|
|
|
|
|
|
|
|
SupplierModel copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String suppliername,
|
|
|
|
|
@ -673,6 +686,7 @@ class SupplierModel {
|
|
|
|
|
suppPersons: suppPersons ?? this.suppPersons,
|
|
|
|
|
suppTCodes: suppTCodes ?? this.suppTCodes,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -724,10 +738,12 @@ class SuppTCodes {
|
|
|
|
|
codeTypeId = json['codeTypeId'];
|
|
|
|
|
codeValue = json['codeValue'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num supplierId;
|
|
|
|
|
num codeTypeId;
|
|
|
|
|
String codeValue;
|
|
|
|
|
|
|
|
|
|
SuppTCodes copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num supplierId,
|
|
|
|
|
@ -740,6 +756,7 @@ class SuppTCodes {
|
|
|
|
|
codeTypeId: codeTypeId ?? this.codeTypeId,
|
|
|
|
|
codeValue: codeValue ?? this.codeValue,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -770,6 +787,7 @@ class SuppPersons {
|
|
|
|
|
externalEngCode = json['externalEngCode'];
|
|
|
|
|
email = json['email'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num supplierId;
|
|
|
|
|
String personName;
|
|
|
|
|
@ -777,6 +795,7 @@ class SuppPersons {
|
|
|
|
|
String contact;
|
|
|
|
|
String externalEngCode;
|
|
|
|
|
String email;
|
|
|
|
|
|
|
|
|
|
SuppPersons copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num supplierId,
|
|
|
|
|
@ -795,6 +814,7 @@ class SuppPersons {
|
|
|
|
|
externalEngCode: externalEngCode ?? this.externalEngCode,
|
|
|
|
|
email: email ?? this.email,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -822,10 +842,12 @@ class Attachments {
|
|
|
|
|
attachmentName = json['attachmentName'];
|
|
|
|
|
attachmentURL = json['attachmentURL'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num supplierId;
|
|
|
|
|
String attachmentName;
|
|
|
|
|
String attachmentURL;
|
|
|
|
|
|
|
|
|
|
Attachments copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num supplierId,
|
|
|
|
|
@ -838,6 +860,7 @@ class Attachments {
|
|
|
|
|
attachmentName: attachmentName ?? this.attachmentName,
|
|
|
|
|
attachmentURL: attachmentURL ?? this.attachmentURL,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -860,9 +883,11 @@ class Addresses {
|
|
|
|
|
supplierId = json['supplierId'];
|
|
|
|
|
address = json['address'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num supplierId;
|
|
|
|
|
String address;
|
|
|
|
|
|
|
|
|
|
Addresses copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num supplierId,
|
|
|
|
|
@ -873,6 +898,7 @@ class Addresses {
|
|
|
|
|
supplierId: supplierId ?? this.supplierId,
|
|
|
|
|
address: address ?? this.address,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -894,9 +920,11 @@ class Faxes {
|
|
|
|
|
supplierId = json['supplierId'];
|
|
|
|
|
fax = json['fax'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num supplierId;
|
|
|
|
|
String fax;
|
|
|
|
|
|
|
|
|
|
Faxes copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num supplierId,
|
|
|
|
|
@ -907,6 +935,7 @@ class Faxes {
|
|
|
|
|
supplierId: supplierId ?? this.supplierId,
|
|
|
|
|
fax: fax ?? this.fax,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -928,9 +957,11 @@ class Telephones {
|
|
|
|
|
supplierId = json['supplierId'];
|
|
|
|
|
telephone = json['telephone'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num supplierId;
|
|
|
|
|
String telephone;
|
|
|
|
|
|
|
|
|
|
Telephones copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num supplierId,
|
|
|
|
|
@ -941,6 +972,7 @@ class Telephones {
|
|
|
|
|
supplierId: supplierId ?? this.supplierId,
|
|
|
|
|
telephone: telephone ?? this.telephone,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -960,8 +992,10 @@ class AttachmentsWorkOrder {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
name = json['name'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
|
|
|
|
|
AttachmentsWorkOrder copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -970,6 +1004,7 @@ class AttachmentsWorkOrder {
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -994,11 +1029,13 @@ class SparePartsWorkOrders {
|
|
|
|
|
returnQty = json['returnQty'];
|
|
|
|
|
installQty = json['installQty'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
SparePart sparePart;
|
|
|
|
|
num qty;
|
|
|
|
|
num returnQty;
|
|
|
|
|
num installQty;
|
|
|
|
|
|
|
|
|
|
SparePartsWorkOrders copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
SparePart sparePart,
|
|
|
|
|
@ -1013,6 +1050,7 @@ class SparePartsWorkOrders {
|
|
|
|
|
returnQty: returnQty ?? this.returnQty,
|
|
|
|
|
installQty: installQty ?? this.installQty,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1038,9 +1076,11 @@ class SparePart {
|
|
|
|
|
partNo = json['partNo'];
|
|
|
|
|
partName = json['partName'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String partNo;
|
|
|
|
|
String partName;
|
|
|
|
|
|
|
|
|
|
SparePart copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String partNo,
|
|
|
|
|
@ -1051,6 +1091,7 @@ class SparePart {
|
|
|
|
|
partNo: partNo ?? this.partNo,
|
|
|
|
|
partName: partName ?? this.partName,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1082,6 +1123,7 @@ class ContactPersonWorkOrders {
|
|
|
|
|
land = json['land'];
|
|
|
|
|
contactUserId = json['contactUserId'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String employeeCode;
|
|
|
|
|
String name;
|
|
|
|
|
@ -1090,6 +1132,7 @@ class ContactPersonWorkOrders {
|
|
|
|
|
String email;
|
|
|
|
|
String land;
|
|
|
|
|
String contactUserId;
|
|
|
|
|
|
|
|
|
|
ContactPersonWorkOrders copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String employeeCode,
|
|
|
|
|
@ -1110,6 +1153,7 @@ class ContactPersonWorkOrders {
|
|
|
|
|
land: land ?? this.land,
|
|
|
|
|
contactUserId: contactUserId ?? this.contactUserId,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1134,8 +1178,10 @@ class AssistantEmployees {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
user = json['user'] != null ? UserModel.fromJson(json['user']) : UserModel(name: json['userName'], id: json['userId']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
UserModel user;
|
|
|
|
|
|
|
|
|
|
AssistantEmployees copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
UserModel user,
|
|
|
|
|
@ -1144,6 +1190,7 @@ class AssistantEmployees {
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
user: user ?? this.user,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1164,8 +1211,10 @@ class UserModel {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
name = json['name'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String id;
|
|
|
|
|
String name;
|
|
|
|
|
|
|
|
|
|
UserModel copyWith({
|
|
|
|
|
String id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1174,6 +1223,7 @@ class UserModel {
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1192,8 +1242,10 @@ class AssignedEmployee {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
name = json['name'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String id;
|
|
|
|
|
String name;
|
|
|
|
|
|
|
|
|
|
AssignedEmployee copyWith({
|
|
|
|
|
String id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1202,6 +1254,7 @@ class AssignedEmployee {
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1243,6 +1296,7 @@ class CallRequest {
|
|
|
|
|
firstAction = json['firstAction'] != null ? FirstAction.fromJson(json['firstAction']) : null;
|
|
|
|
|
assetType = json['assetType'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String callNo;
|
|
|
|
|
String callComments;
|
|
|
|
|
@ -1254,6 +1308,7 @@ class CallRequest {
|
|
|
|
|
DefectType defectType;
|
|
|
|
|
FirstAction firstAction;
|
|
|
|
|
num assetType;
|
|
|
|
|
|
|
|
|
|
CallRequest copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String callNo,
|
|
|
|
|
@ -1280,6 +1335,7 @@ class CallRequest {
|
|
|
|
|
firstAction: firstAction ?? this.firstAction,
|
|
|
|
|
assetType: assetType ?? this.assetType,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1323,9 +1379,11 @@ class FirstAction {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
FirstAction copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1336,6 +1394,7 @@ class FirstAction {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1357,9 +1416,11 @@ class DefectType {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
DefectType copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1370,6 +1431,7 @@ class DefectType {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1391,9 +1453,11 @@ class Status {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
Status copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1404,6 +1468,7 @@ class Status {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1435,6 +1500,7 @@ class CallSiteContactPerson {
|
|
|
|
|
land = json['land'];
|
|
|
|
|
contactUserId = json['contactUserId'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String employeeCode;
|
|
|
|
|
String name;
|
|
|
|
|
@ -1443,6 +1509,7 @@ class CallSiteContactPerson {
|
|
|
|
|
String email;
|
|
|
|
|
String land;
|
|
|
|
|
String contactUserId;
|
|
|
|
|
|
|
|
|
|
CallSiteContactPerson copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String employeeCode,
|
|
|
|
|
@ -1463,6 +1530,7 @@ class CallSiteContactPerson {
|
|
|
|
|
land: land ?? this.land,
|
|
|
|
|
contactUserId: contactUserId ?? this.contactUserId,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1584,6 +1652,7 @@ class Asset {
|
|
|
|
|
comment = json['comment'];
|
|
|
|
|
tagCode = json['tagCode'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String assetSerialNo;
|
|
|
|
|
String systemID;
|
|
|
|
|
@ -1632,6 +1701,7 @@ class Asset {
|
|
|
|
|
List<TechnicalGuidanceBooks> technicalGuidanceBooks;
|
|
|
|
|
String comment;
|
|
|
|
|
String tagCode;
|
|
|
|
|
|
|
|
|
|
Asset copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String assetSerialNo,
|
|
|
|
|
@ -1732,6 +1802,7 @@ class Asset {
|
|
|
|
|
comment: comment ?? this.comment,
|
|
|
|
|
tagCode: tagCode ?? this.tagCode,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1836,8 +1907,10 @@ class TechnicalGuidanceBooks {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
guidanceBook = json['guidanceBook'] != null ? GuidanceBook.fromJson(json['guidanceBook']) : null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
GuidanceBook guidanceBook;
|
|
|
|
|
|
|
|
|
|
TechnicalGuidanceBooks copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
GuidanceBook guidanceBook,
|
|
|
|
|
@ -1846,6 +1919,7 @@ class TechnicalGuidanceBooks {
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
guidanceBook: guidanceBook ?? this.guidanceBook,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1868,9 +1942,11 @@ class GuidanceBook {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
GuidanceBook copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1881,6 +1957,7 @@ class GuidanceBook {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1902,9 +1979,11 @@ class RemainderWarrantyMonths {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
RemainderWarrantyMonths copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1915,6 +1994,7 @@ class RemainderWarrantyMonths {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1936,9 +2016,11 @@ class ExtendedWarrantyMonths {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
ExtendedWarrantyMonths copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1949,6 +2031,7 @@ class ExtendedWarrantyMonths {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -1970,9 +2053,11 @@ class SiteWarrantyMonths {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
SiteWarrantyMonths copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -1983,6 +2068,7 @@ class SiteWarrantyMonths {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2004,9 +2090,11 @@ class CommissioningStatus {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
CommissioningStatus copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2017,6 +2105,7 @@ class CommissioningStatus {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2045,10 +2134,12 @@ class OriginSite {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num customerCode;
|
|
|
|
|
String custName;
|
|
|
|
|
List<Buildings> buildings;
|
|
|
|
|
|
|
|
|
|
OriginSite copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num customerCode,
|
|
|
|
|
@ -2061,6 +2152,7 @@ class OriginSite {
|
|
|
|
|
custName: custName ?? this.custName,
|
|
|
|
|
buildings: buildings ?? this.buildings,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2092,10 +2184,12 @@ class Buildings {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
List<Floors> floors;
|
|
|
|
|
|
|
|
|
|
Buildings copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2108,6 +2202,7 @@ class Buildings {
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
floors: floors ?? this.floors,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2139,10 +2234,12 @@ class Floors {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
List<Departments> departments;
|
|
|
|
|
|
|
|
|
|
Floors copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2155,6 +2252,7 @@ class Floors {
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
departments: departments ?? this.departments,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2177,8 +2275,10 @@ class Departments {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
name = json['name'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
|
|
|
|
|
Departments copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2187,6 +2287,7 @@ class Departments {
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2209,10 +2310,12 @@ class OriginDepartment {
|
|
|
|
|
departmentCode = json['departmentCode'];
|
|
|
|
|
ntCode = json['ntCode'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String departmentName;
|
|
|
|
|
String departmentCode;
|
|
|
|
|
String ntCode;
|
|
|
|
|
|
|
|
|
|
OriginDepartment copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String departmentName,
|
|
|
|
|
@ -2225,6 +2328,7 @@ class OriginDepartment {
|
|
|
|
|
departmentCode: departmentCode ?? this.departmentCode,
|
|
|
|
|
ntCode: ntCode ?? this.ntCode,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id;
|
|
|
|
|
@ -2247,9 +2351,11 @@ class Currency {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
Currency copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2260,6 +2366,7 @@ class Currency {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2283,10 +2390,12 @@ class Department {
|
|
|
|
|
departmentCode = json['departmentCode'];
|
|
|
|
|
ntCode = json['ntCode'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String departmentName;
|
|
|
|
|
String departmentCode;
|
|
|
|
|
String ntCode;
|
|
|
|
|
|
|
|
|
|
Department copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String departmentName,
|
|
|
|
|
@ -2299,6 +2408,7 @@ class Department {
|
|
|
|
|
departmentCode: departmentCode ?? this.departmentCode,
|
|
|
|
|
ntCode: ntCode ?? this.ntCode,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2321,9 +2431,11 @@ class Floor {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
Floor copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2334,6 +2446,7 @@ class Floor {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2355,9 +2468,11 @@ class Building {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
Building copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2368,6 +2483,7 @@ class Building {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2396,10 +2512,12 @@ class Site {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
num customerCode;
|
|
|
|
|
String custName;
|
|
|
|
|
List<Buildings> buildings;
|
|
|
|
|
|
|
|
|
|
Site copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
num customerCode,
|
|
|
|
|
@ -2412,6 +2530,7 @@ class Site {
|
|
|
|
|
custName: custName ?? this.custName,
|
|
|
|
|
buildings: buildings ?? this.buildings,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2440,11 +2559,13 @@ class ParentAsset {
|
|
|
|
|
tagCode = json['tagCode'];
|
|
|
|
|
systemId = json['systemId'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String assetSerialNo;
|
|
|
|
|
String assetNumber;
|
|
|
|
|
String tagCode;
|
|
|
|
|
String systemId;
|
|
|
|
|
|
|
|
|
|
ParentAsset copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String assetSerialNo,
|
|
|
|
|
@ -2459,6 +2580,7 @@ class ParentAsset {
|
|
|
|
|
tagCode: tagCode ?? this.tagCode,
|
|
|
|
|
systemId: systemId ?? this.systemId,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2482,9 +2604,11 @@ class IsParent {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
IsParent copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2495,6 +2619,7 @@ class IsParent {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2520,11 +2645,13 @@ class OldAsset {
|
|
|
|
|
tagCode = json['tagCode'];
|
|
|
|
|
systemId = json['systemId'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String assetSerialNo;
|
|
|
|
|
String assetNumber;
|
|
|
|
|
String tagCode;
|
|
|
|
|
String systemId;
|
|
|
|
|
|
|
|
|
|
OldAsset copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String assetSerialNo,
|
|
|
|
|
@ -2539,6 +2666,7 @@ class OldAsset {
|
|
|
|
|
tagCode: tagCode ?? this.tagCode,
|
|
|
|
|
systemId: systemId ?? this.systemId,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id;
|
|
|
|
|
@ -2562,9 +2690,11 @@ class AssetReplace {
|
|
|
|
|
name = json['name'];
|
|
|
|
|
value = json['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String name;
|
|
|
|
|
num value;
|
|
|
|
|
|
|
|
|
|
AssetReplace copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String name,
|
|
|
|
|
@ -2575,6 +2705,7 @@ class AssetReplace {
|
|
|
|
|
name: name ?? this.name,
|
|
|
|
|
value: value ?? this.value,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2594,8 +2725,10 @@ class Supplier {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
suppliername = json['suppliername'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String suppliername;
|
|
|
|
|
|
|
|
|
|
SupplierModel copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String suppliername,
|
|
|
|
|
@ -2604,6 +2737,7 @@ class Supplier {
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
suppliername: suppliername ?? this.suppliername,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2654,6 +2788,7 @@ class ModelDefinition {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String assetName;
|
|
|
|
|
String modelDefCode;
|
|
|
|
|
@ -2667,6 +2802,7 @@ class ModelDefinition {
|
|
|
|
|
num lifeSpan;
|
|
|
|
|
List<ModelDefRelatedDefects> modelDefRelatedDefects;
|
|
|
|
|
List<Suppliers> suppliers;
|
|
|
|
|
|
|
|
|
|
ModelDefinition copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String assetName,
|
|
|
|
|
@ -2697,6 +2833,7 @@ class ModelDefinition {
|
|
|
|
|
modelDefRelatedDefects: modelDefRelatedDefects ?? this.modelDefRelatedDefects,
|
|
|
|
|
suppliers: suppliers ?? this.suppliers,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2730,8 +2867,10 @@ class Suppliers {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
suppliername = json['suppliername'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String suppliername;
|
|
|
|
|
|
|
|
|
|
Suppliers copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String suppliername,
|
|
|
|
|
@ -2740,6 +2879,7 @@ class Suppliers {
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
suppliername: suppliername ?? this.suppliername,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id ?? 0;
|
|
|
|
|
@ -2762,10 +2902,12 @@ class ModelDefRelatedDefects {
|
|
|
|
|
workPerformed = json['workPerformed'];
|
|
|
|
|
estimatedTime = json['estimatedTime'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
String defectName;
|
|
|
|
|
String workPerformed;
|
|
|
|
|
String estimatedTime;
|
|
|
|
|
|
|
|
|
|
ModelDefRelatedDefects copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
String defectName,
|
|
|
|
|
@ -2778,6 +2920,7 @@ class ModelDefRelatedDefects {
|
|
|
|
|
workPerformed: workPerformed ?? this.workPerformed,
|
|
|
|
|
estimatedTime: estimatedTime ?? this.estimatedTime,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = id;
|
|
|
|
|
|