|
|
|
@ -88,7 +88,7 @@ class WorkOrderData {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
int? requestId;
|
|
|
|
int? requestId;
|
|
|
|
String? workOrderNo;
|
|
|
|
String? workOrderNo;
|
|
|
|
AssignedEmployee? workOrderCreatedBy;
|
|
|
|
WorkOrderAssignedEmployee? workOrderCreatedBy;
|
|
|
|
DateTime? requestedDate;
|
|
|
|
DateTime? requestedDate;
|
|
|
|
WorkOrderAsset? asset;
|
|
|
|
WorkOrderAsset? asset;
|
|
|
|
Lookup? assetGroup;
|
|
|
|
Lookup? assetGroup;
|
|
|
|
@ -101,7 +101,7 @@ class WorkOrderData {
|
|
|
|
AssetGroup? department;
|
|
|
|
AssetGroup? department;
|
|
|
|
int? room;
|
|
|
|
int? room;
|
|
|
|
Lookup? assetType;
|
|
|
|
Lookup? assetType;
|
|
|
|
AssignedEmployee? assignedEmployee;
|
|
|
|
WorkOrderAssignedEmployee? assignedEmployee;
|
|
|
|
String? lastActivityStatus;
|
|
|
|
String? lastActivityStatus;
|
|
|
|
Lookup? status;
|
|
|
|
Lookup? status;
|
|
|
|
Lookup? nextStep;
|
|
|
|
Lookup? nextStep;
|
|
|
|
@ -130,12 +130,10 @@ class WorkOrderData {
|
|
|
|
List<dynamic> activityAssetToBeRetireds;
|
|
|
|
List<dynamic> activityAssetToBeRetireds;
|
|
|
|
|
|
|
|
|
|
|
|
factory WorkOrderData.fromJson(Map<String, dynamic> json) {
|
|
|
|
factory WorkOrderData.fromJson(Map<String, dynamic> json) {
|
|
|
|
print('activities in json is ${json["activities"]}');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return WorkOrderData(
|
|
|
|
return WorkOrderData(
|
|
|
|
requestId: json["id"],
|
|
|
|
requestId: json["id"],
|
|
|
|
workOrderNo: json["workOrderNo"],
|
|
|
|
workOrderNo: json["workOrderNo"],
|
|
|
|
workOrderCreatedBy: json["workOrderCreatedBy"] == null ? null : AssignedEmployee.fromJson(json["workOrderCreatedBy"]),
|
|
|
|
workOrderCreatedBy: json["workOrderCreatedBy"] == null ? null : WorkOrderAssignedEmployee.fromJson(json["workOrderCreatedBy"]),
|
|
|
|
requestedDate: DateTime.tryParse(json["requestedDate"] ?? ""),
|
|
|
|
requestedDate: DateTime.tryParse(json["requestedDate"] ?? ""),
|
|
|
|
asset: json["asset"] == null ? null : WorkOrderAsset.fromJson(json["asset"]),
|
|
|
|
asset: json["asset"] == null ? null : WorkOrderAsset.fromJson(json["asset"]),
|
|
|
|
assetGroup: json["assetGroup"] == null ? null : Lookup.fromJson(json["assetGroup"]),
|
|
|
|
assetGroup: json["assetGroup"] == null ? null : Lookup.fromJson(json["assetGroup"]),
|
|
|
|
@ -148,7 +146,7 @@ class WorkOrderData {
|
|
|
|
department: json["department"] == null ? null : AssetGroup.fromJson(json["department"]),
|
|
|
|
department: json["department"] == null ? null : AssetGroup.fromJson(json["department"]),
|
|
|
|
room: json["room"],
|
|
|
|
room: json["room"],
|
|
|
|
assetType: json["assetType"] == null ? null : Lookup.fromJson(json["assetType"]),
|
|
|
|
assetType: json["assetType"] == null ? null : Lookup.fromJson(json["assetType"]),
|
|
|
|
assignedEmployee: json["assignedEmployee"] == null ? null : AssignedEmployee.fromJson(json["assignedEmployee"]),
|
|
|
|
assignedEmployee: json["assignedEmployee"] == null ? null : WorkOrderAssignedEmployee.fromJson(json["assignedEmployee"]),
|
|
|
|
lastActivityStatus: json["lastActivityStatus"],
|
|
|
|
lastActivityStatus: json["lastActivityStatus"],
|
|
|
|
status: json["status"] == null ? null : Lookup.fromJson(json["status"]),
|
|
|
|
status: json["status"] == null ? null : Lookup.fromJson(json["status"]),
|
|
|
|
nextStep: json["nextStep"] == null ? null : Lookup.fromJson(json["nextStep"]),
|
|
|
|
nextStep: json["nextStep"] == null ? null : Lookup.fromJson(json["nextStep"]),
|
|
|
|
@ -297,8 +295,8 @@ class AssetGroup {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class AssignedEmployee {
|
|
|
|
class WorkOrderAssignedEmployee {
|
|
|
|
AssignedEmployee({
|
|
|
|
WorkOrderAssignedEmployee({
|
|
|
|
required this.userId,
|
|
|
|
required this.userId,
|
|
|
|
required this.userName,
|
|
|
|
required this.userName,
|
|
|
|
required this.email,
|
|
|
|
required this.email,
|
|
|
|
@ -310,8 +308,8 @@ class AssignedEmployee {
|
|
|
|
String? email;
|
|
|
|
String? email;
|
|
|
|
int? languageId;
|
|
|
|
int? languageId;
|
|
|
|
|
|
|
|
|
|
|
|
factory AssignedEmployee.fromJson(Map<String, dynamic> json) {
|
|
|
|
factory WorkOrderAssignedEmployee.fromJson(Map<String, dynamic> json) {
|
|
|
|
return AssignedEmployee(
|
|
|
|
return WorkOrderAssignedEmployee(
|
|
|
|
userId: json["userId"],
|
|
|
|
userId: json["userId"],
|
|
|
|
userName: json["userName"],
|
|
|
|
userName: json["userName"],
|
|
|
|
email: json["email"],
|
|
|
|
email: json["email"],
|
|
|
|
@ -331,7 +329,7 @@ class Activities {
|
|
|
|
int? id;
|
|
|
|
int? id;
|
|
|
|
int? orderNo;
|
|
|
|
int? orderNo;
|
|
|
|
ActivityStatus? activityStatus;
|
|
|
|
ActivityStatus? activityStatus;
|
|
|
|
dynamic activityMaintenance;
|
|
|
|
ActivityMaintenance? activityMaintenance;
|
|
|
|
ActivitySparePart? activitySparePart;
|
|
|
|
ActivitySparePart? activitySparePart;
|
|
|
|
String ?activityType;
|
|
|
|
String ?activityType;
|
|
|
|
|
|
|
|
|
|
|
|
@ -349,7 +347,9 @@ class Activities {
|
|
|
|
activityStatus = json['activityStatus'] != null
|
|
|
|
activityStatus = json['activityStatus'] != null
|
|
|
|
? ActivityStatus.fromJson(json['activityStatus'])
|
|
|
|
? ActivityStatus.fromJson(json['activityStatus'])
|
|
|
|
: null;
|
|
|
|
: null;
|
|
|
|
activityMaintenance = json['activityMaintenance'];
|
|
|
|
activityMaintenance = json['activityMaintenance'] != null
|
|
|
|
|
|
|
|
? ActivityMaintenance.fromJson(json['activityMaintenance'])
|
|
|
|
|
|
|
|
: null;
|
|
|
|
if(activityMaintenance!=null){
|
|
|
|
if(activityMaintenance!=null){
|
|
|
|
activityType='Maintenance Request';
|
|
|
|
activityType='Maintenance Request';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -369,10 +369,12 @@ class Activities {
|
|
|
|
if (activityStatus != null) {
|
|
|
|
if (activityStatus != null) {
|
|
|
|
data['activityStatus'] = activityStatus!.toJson();
|
|
|
|
data['activityStatus'] = activityStatus!.toJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
data['activityMaintenance'] = activityMaintenance;
|
|
|
|
|
|
|
|
if (activitySparePart != null) {
|
|
|
|
if (activitySparePart != null) {
|
|
|
|
data['activitySparePart'] = activitySparePart!.toJson();
|
|
|
|
data['activitySparePart'] = activitySparePart!.toJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (activityMaintenance != null) {
|
|
|
|
|
|
|
|
data['activityMaintenance'] = activityMaintenance!.toJson();
|
|
|
|
|
|
|
|
}
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -391,7 +393,7 @@ class ActivityStatus {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
final Map<String, dynamic> data = Map<String, dynamic>();
|
|
|
|
data['id'] = this.id;
|
|
|
|
data['id'] = this.id;
|
|
|
|
data['name'] = this.name;
|
|
|
|
data['name'] = this.name;
|
|
|
|
data['value'] = this.value;
|
|
|
|
data['value'] = this.value;
|
|
|
|
@ -509,7 +511,7 @@ class WorkOrderContactPerson {
|
|
|
|
dynamic extension;
|
|
|
|
dynamic extension;
|
|
|
|
String? email;
|
|
|
|
String? email;
|
|
|
|
dynamic mobilePhone;
|
|
|
|
dynamic mobilePhone;
|
|
|
|
AssignedEmployee? contactUser;
|
|
|
|
WorkOrderAssignedEmployee? contactUser;
|
|
|
|
|
|
|
|
|
|
|
|
factory WorkOrderContactPerson.fromJson(Map<String, dynamic> json) {
|
|
|
|
factory WorkOrderContactPerson.fromJson(Map<String, dynamic> json) {
|
|
|
|
return WorkOrderContactPerson(
|
|
|
|
return WorkOrderContactPerson(
|
|
|
|
@ -520,7 +522,7 @@ class WorkOrderContactPerson {
|
|
|
|
extension: json["extension"],
|
|
|
|
extension: json["extension"],
|
|
|
|
email: json["email"],
|
|
|
|
email: json["email"],
|
|
|
|
mobilePhone: json["mobilePhone"],
|
|
|
|
mobilePhone: json["mobilePhone"],
|
|
|
|
contactUser: json["contactUser"] == null ? null : AssignedEmployee.fromJson(json["contactUser"]),
|
|
|
|
contactUser: json["contactUser"] == null ? null : WorkOrderAssignedEmployee.fromJson(json["contactUser"]),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -556,7 +558,7 @@ class WorkOrderHistory {
|
|
|
|
Lookup? workorderStatus;
|
|
|
|
Lookup? workorderStatus;
|
|
|
|
dynamic activityStatus;
|
|
|
|
dynamic activityStatus;
|
|
|
|
DateTime? date;
|
|
|
|
DateTime? date;
|
|
|
|
AssignedEmployee? user;
|
|
|
|
WorkOrderAssignedEmployee? user;
|
|
|
|
Lookup? step;
|
|
|
|
Lookup? step;
|
|
|
|
DateTime? fixRemotlyStartTime;
|
|
|
|
DateTime? fixRemotlyStartTime;
|
|
|
|
DateTime? fixRemotlyEndTime;
|
|
|
|
DateTime? fixRemotlyEndTime;
|
|
|
|
@ -570,7 +572,7 @@ class WorkOrderHistory {
|
|
|
|
workorderStatus: json["workorderStatus"] == null ? null : Lookup.fromJson(json["workorderStatus"]),
|
|
|
|
workorderStatus: json["workorderStatus"] == null ? null : Lookup.fromJson(json["workorderStatus"]),
|
|
|
|
activityStatus: json["activityStatus"],
|
|
|
|
activityStatus: json["activityStatus"],
|
|
|
|
date: DateTime.tryParse(json["date"] ?? ""),
|
|
|
|
date: DateTime.tryParse(json["date"] ?? ""),
|
|
|
|
user: json["user"] == null ? null : AssignedEmployee.fromJson(json["user"]),
|
|
|
|
user: json["user"] == null ? null : WorkOrderAssignedEmployee.fromJson(json["user"]),
|
|
|
|
step: json["step"] == null ? null : Lookup.fromJson(json["step"]),
|
|
|
|
step: json["step"] == null ? null : Lookup.fromJson(json["step"]),
|
|
|
|
fixRemotlyStartTime: DateTime.tryParse(json["fixRemotlyStartTime"] ?? ""),
|
|
|
|
fixRemotlyStartTime: DateTime.tryParse(json["fixRemotlyStartTime"] ?? ""),
|
|
|
|
fixRemotlyEndTime: DateTime.tryParse(json["fixRemotlyEndTime"] ?? ""),
|
|
|
|
fixRemotlyEndTime: DateTime.tryParse(json["fixRemotlyEndTime"] ?? ""),
|
|
|
|
@ -595,3 +597,176 @@ class WorkOrderHistory {
|
|
|
|
"needAVisitDateTime": needAVisitDateTime?.toIso8601String(),
|
|
|
|
"needAVisitDateTime": needAVisitDateTime?.toIso8601String(),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class ActivityMaintenance {
|
|
|
|
|
|
|
|
int? id;
|
|
|
|
|
|
|
|
int? activityStatus;
|
|
|
|
|
|
|
|
String? startTime;
|
|
|
|
|
|
|
|
String? endTime;
|
|
|
|
|
|
|
|
int? workingHours;
|
|
|
|
|
|
|
|
int? travelHours;
|
|
|
|
|
|
|
|
RepairLocation? repairLocation;
|
|
|
|
|
|
|
|
AssignedEmployee? assignedEmployee;
|
|
|
|
|
|
|
|
String? technicalComment;
|
|
|
|
|
|
|
|
int? supplier;
|
|
|
|
|
|
|
|
int? supplierEngineer;
|
|
|
|
|
|
|
|
String? supplierStartTime;
|
|
|
|
|
|
|
|
String? supplierEndTime;
|
|
|
|
|
|
|
|
int? supplierWorkingHours;
|
|
|
|
|
|
|
|
List<ActivityMaintenanceAssistantEmployees>? assistantEmployees;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ActivityMaintenance(
|
|
|
|
|
|
|
|
{this.id,
|
|
|
|
|
|
|
|
this.activityStatus,
|
|
|
|
|
|
|
|
this.startTime,
|
|
|
|
|
|
|
|
this.endTime,
|
|
|
|
|
|
|
|
this.workingHours,
|
|
|
|
|
|
|
|
this.travelHours,
|
|
|
|
|
|
|
|
this.repairLocation,
|
|
|
|
|
|
|
|
this.assignedEmployee,
|
|
|
|
|
|
|
|
this.technicalComment,
|
|
|
|
|
|
|
|
this.supplier,
|
|
|
|
|
|
|
|
this.supplierEngineer,
|
|
|
|
|
|
|
|
this.supplierStartTime,
|
|
|
|
|
|
|
|
this.supplierEndTime,
|
|
|
|
|
|
|
|
this.supplierWorkingHours,
|
|
|
|
|
|
|
|
this.assistantEmployees});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ActivityMaintenance.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
|
|
id = json['id'];
|
|
|
|
|
|
|
|
activityStatus = json['activityStatus'];
|
|
|
|
|
|
|
|
startTime = json['startTime'];
|
|
|
|
|
|
|
|
endTime = json['endTime'];
|
|
|
|
|
|
|
|
workingHours = json['workingHours'];
|
|
|
|
|
|
|
|
travelHours = json['travelHours'];
|
|
|
|
|
|
|
|
repairLocation = json['repairLocation'] != null
|
|
|
|
|
|
|
|
? RepairLocation.fromJson(json['repairLocation'])
|
|
|
|
|
|
|
|
: null;
|
|
|
|
|
|
|
|
assignedEmployee = json['assignedEmployee'] != null
|
|
|
|
|
|
|
|
? AssignedEmployee.fromJson(json['assignedEmployee'])
|
|
|
|
|
|
|
|
: null;
|
|
|
|
|
|
|
|
technicalComment = json['technicalComment'];
|
|
|
|
|
|
|
|
supplier = json['supplier'];
|
|
|
|
|
|
|
|
supplierEngineer = json['supplierEngineer'];
|
|
|
|
|
|
|
|
supplierStartTime = json['supplierStartTime'];
|
|
|
|
|
|
|
|
supplierEndTime = json['supplierEndTime'];
|
|
|
|
|
|
|
|
supplierWorkingHours = json['supplierWorkingHours'];
|
|
|
|
|
|
|
|
if (json['assistantEmployees'] != null) {
|
|
|
|
|
|
|
|
assistantEmployees = <ActivityMaintenanceAssistantEmployees>[];
|
|
|
|
|
|
|
|
json['assistantEmployees'].forEach((v) {
|
|
|
|
|
|
|
|
assistantEmployees!.add( ActivityMaintenanceAssistantEmployees.fromJson(v));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
|
|
|
data['activityStatus'] = activityStatus;
|
|
|
|
|
|
|
|
data['startTime'] = startTime;
|
|
|
|
|
|
|
|
data['endTime'] = endTime;
|
|
|
|
|
|
|
|
data['workingHours'] = workingHours;
|
|
|
|
|
|
|
|
data['travelHours'] = travelHours;
|
|
|
|
|
|
|
|
if (repairLocation != null) {
|
|
|
|
|
|
|
|
data['repairLocation'] = repairLocation!.toJson();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (assignedEmployee != null) {
|
|
|
|
|
|
|
|
data['assignedEmployee'] = assignedEmployee!.toJson();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
data['technicalComment'] = technicalComment;
|
|
|
|
|
|
|
|
data['supplier'] = supplier;
|
|
|
|
|
|
|
|
data['supplierEngineer'] = supplierEngineer;
|
|
|
|
|
|
|
|
data['supplierStartTime'] = supplierStartTime;
|
|
|
|
|
|
|
|
data['supplierEndTime'] = supplierEndTime;
|
|
|
|
|
|
|
|
data['supplierWorkingHours'] = supplierWorkingHours;
|
|
|
|
|
|
|
|
if (assistantEmployees != null) {
|
|
|
|
|
|
|
|
data['assistantEmployees'] =
|
|
|
|
|
|
|
|
assistantEmployees!.map((v) => v.toJson()).toList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RepairLocation {
|
|
|
|
|
|
|
|
int? id;
|
|
|
|
|
|
|
|
String? name;
|
|
|
|
|
|
|
|
int? value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RepairLocation({this.id, this.name, this.value});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RepairLocation.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
|
|
id = json['id'];
|
|
|
|
|
|
|
|
name = json['name'];
|
|
|
|
|
|
|
|
value = json['value'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
|
|
|
data['name'] = name;
|
|
|
|
|
|
|
|
data['value'] = value;
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AssignedEmployee {
|
|
|
|
|
|
|
|
String? userId;
|
|
|
|
|
|
|
|
String? userName;
|
|
|
|
|
|
|
|
String? email;
|
|
|
|
|
|
|
|
int? languageId;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AssignedEmployee({this.userId, this.userName, this.email, this.languageId});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AssignedEmployee.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
|
|
userId = json['userId'];
|
|
|
|
|
|
|
|
userName = json['userName'];
|
|
|
|
|
|
|
|
email = json['email'];
|
|
|
|
|
|
|
|
languageId = json['languageId'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
|
|
data['userId'] = userId;
|
|
|
|
|
|
|
|
data['userName'] = userName;
|
|
|
|
|
|
|
|
data['email'] = email;
|
|
|
|
|
|
|
|
data['languageId'] = languageId;
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ActivityMaintenanceAssistantEmployees {
|
|
|
|
|
|
|
|
String? startDate;
|
|
|
|
|
|
|
|
String? endDate;
|
|
|
|
|
|
|
|
int? workingHours;
|
|
|
|
|
|
|
|
String? technicalComment;
|
|
|
|
|
|
|
|
AssignedEmployee? user;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ActivityMaintenanceAssistantEmployees(
|
|
|
|
|
|
|
|
{this.startDate,
|
|
|
|
|
|
|
|
this.endDate,
|
|
|
|
|
|
|
|
this.workingHours,
|
|
|
|
|
|
|
|
this.technicalComment,
|
|
|
|
|
|
|
|
this.user});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ActivityMaintenanceAssistantEmployees.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
|
|
startDate = json['startDate'];
|
|
|
|
|
|
|
|
endDate = json['endDate'];
|
|
|
|
|
|
|
|
workingHours = json['workingHours'];
|
|
|
|
|
|
|
|
technicalComment = json['technicalComment'];
|
|
|
|
|
|
|
|
user = json['user'] != null
|
|
|
|
|
|
|
|
? new AssignedEmployee.fromJson(json['user'])
|
|
|
|
|
|
|
|
: null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
|
|
data['startDate'] = startDate;
|
|
|
|
|
|
|
|
data['endDate'] = endDate;
|
|
|
|
|
|
|
|
data['workingHours'] = workingHours;
|
|
|
|
|
|
|
|
data['technicalComment'] = technicalComment;
|
|
|
|
|
|
|
|
if (user != null) {
|
|
|
|
|
|
|
|
data['user'] = user!.toJson();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|