You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
3.7 KiB
Dart
109 lines
3.7 KiB
Dart
|
3 weeks ago
|
class UserRotaModel {
|
||
|
|
String? employeeNumber;
|
||
|
|
String? scheduleDate;
|
||
|
|
String? shiftName;
|
||
|
|
String? breakTime;
|
||
|
|
String? shiftActualStartDatetime;
|
||
|
|
String? shTActualStartTime;
|
||
|
|
String? shiftActualEndDateTime;
|
||
|
|
String? shTActualEndTime;
|
||
|
|
String? approvedStartDatetime;
|
||
|
|
String? approvedStartTime;
|
||
|
|
String? approvedStartReasonDesc;
|
||
|
|
String? approvedEndDatetime;
|
||
|
|
String? approvedEndTime;
|
||
|
|
String? approvedEndReasonDesc;
|
||
|
|
String? remarks;
|
||
|
|
String? leaveTypeCode;
|
||
|
|
String? leaveDescription;
|
||
|
|
int? assetGroupId;
|
||
|
|
String? assetGroupName;
|
||
|
|
int? id;
|
||
|
|
String? createdBy;
|
||
|
|
String? createdDate;
|
||
|
|
String? modifiedBy;
|
||
|
|
String? modifiedDate;
|
||
|
|
|
||
|
|
UserRotaModel(
|
||
|
|
{this.employeeNumber,
|
||
|
|
this.scheduleDate,
|
||
|
|
this.shiftName,
|
||
|
|
this.breakTime,
|
||
|
|
this.shiftActualStartDatetime,
|
||
|
|
this.shTActualStartTime,
|
||
|
|
this.shiftActualEndDateTime,
|
||
|
|
this.shTActualEndTime,
|
||
|
|
this.approvedStartDatetime,
|
||
|
|
this.approvedStartTime,
|
||
|
|
this.approvedStartReasonDesc,
|
||
|
|
this.approvedEndDatetime,
|
||
|
|
this.approvedEndTime,
|
||
|
|
this.approvedEndReasonDesc,
|
||
|
|
this.remarks,
|
||
|
|
this.leaveTypeCode,
|
||
|
|
this.leaveDescription,
|
||
|
|
this.assetGroupId,
|
||
|
|
this.assetGroupName,
|
||
|
|
this.id,
|
||
|
|
this.createdBy,
|
||
|
|
this.createdDate,
|
||
|
|
this.modifiedBy,
|
||
|
|
this.modifiedDate});
|
||
|
|
|
||
|
|
UserRotaModel.fromJson(Map<String, dynamic> json) {
|
||
|
|
employeeNumber = json['employeeNumber'];
|
||
|
|
scheduleDate = json['scheduleDate'];
|
||
|
|
shiftName = json['shiftName'];
|
||
|
|
breakTime = json['break'];
|
||
|
|
shiftActualStartDatetime = json['shiftActualStartDatetime'];
|
||
|
|
shTActualStartTime = json['shTActualStartTime'];
|
||
|
|
shiftActualEndDateTime = json['shiftActualEndDateTime'];
|
||
|
|
shTActualEndTime = json['shTActualEndTime'];
|
||
|
|
approvedStartDatetime = json['approvedStartDatetime'];
|
||
|
|
approvedStartTime = json['approvedStartTime'];
|
||
|
|
approvedStartReasonDesc = json['approvedStartReasonDesc'];
|
||
|
|
approvedEndDatetime = json['approvedEndDatetime'];
|
||
|
|
approvedEndTime = json['approvedEndTime'];
|
||
|
|
approvedEndReasonDesc = json['approvedEndReasonDesc'];
|
||
|
|
remarks = json['remarks'];
|
||
|
|
leaveTypeCode = json['leaveTypeCode'];
|
||
|
|
leaveDescription = json['leaveDescription'];
|
||
|
|
assetGroupId = json['assetGroupId'];
|
||
|
|
assetGroupName = json['assetGroupName'];
|
||
|
|
id = json['id'];
|
||
|
|
createdBy = json['createdBy'];
|
||
|
|
createdDate = json['createdDate'];
|
||
|
|
modifiedBy = json['modifiedBy'];
|
||
|
|
modifiedDate = json['modifiedDate'];
|
||
|
|
}
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() {
|
||
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||
|
|
data['employeeNumber'] = this.employeeNumber;
|
||
|
|
data['scheduleDate'] = this.scheduleDate;
|
||
|
|
data['shiftName'] = this.shiftName;
|
||
|
|
data['break'] = this.breakTime;
|
||
|
|
data['shiftActualStartDatetime'] = this.shiftActualStartDatetime;
|
||
|
|
data['shTActualStartTime'] = this.shTActualStartTime;
|
||
|
|
data['shiftActualEndDateTime'] = this.shiftActualEndDateTime;
|
||
|
|
data['shTActualEndTime'] = this.shTActualEndTime;
|
||
|
|
data['approvedStartDatetime'] = this.approvedStartDatetime;
|
||
|
|
data['approvedStartTime'] = this.approvedStartTime;
|
||
|
|
data['approvedStartReasonDesc'] = this.approvedStartReasonDesc;
|
||
|
|
data['approvedEndDatetime'] = this.approvedEndDatetime;
|
||
|
|
data['approvedEndTime'] = this.approvedEndTime;
|
||
|
|
data['approvedEndReasonDesc'] = this.approvedEndReasonDesc;
|
||
|
|
data['remarks'] = this.remarks;
|
||
|
|
data['leaveTypeCode'] = this.leaveTypeCode;
|
||
|
|
data['leaveDescription'] = this.leaveDescription;
|
||
|
|
data['assetGroupId'] = this.assetGroupId;
|
||
|
|
data['assetGroupName'] = this.assetGroupName;
|
||
|
|
data['id'] = this.id;
|
||
|
|
data['createdBy'] = this.createdBy;
|
||
|
|
data['createdDate'] = this.createdDate;
|
||
|
|
data['modifiedBy'] = this.modifiedBy;
|
||
|
|
data['modifiedDate'] = this.modifiedDate;
|
||
|
|
return data;
|
||
|
|
}
|
||
|
|
}
|