|
@@ -0,0 +1,766 @@
|
|
|
+import 'package:domain/generated/json/base/json_convert_content.dart';
|
|
|
+import 'package:domain/entity/response/t_h_revise_workflow_entity.dart';
|
|
|
+
|
|
|
+THReviseWorkflowEntity $THReviseWorkflowEntityFromJson(Map<String, dynamic> json) {
|
|
|
+ final THReviseWorkflowEntity tHReviseWorkflowEntity = THReviseWorkflowEntity();
|
|
|
+ final THReviseWorkflowRevise? revise = jsonConvert.convert<THReviseWorkflowRevise>(json['revise']);
|
|
|
+ if (revise != null) {
|
|
|
+ tHReviseWorkflowEntity.revise = revise;
|
|
|
+ }
|
|
|
+ final List<THReviseWorkflowRecords>? records = (json['records'] as List<dynamic>?)?.map(
|
|
|
+ (e) => jsonConvert.convert<THReviseWorkflowRecords>(e) as THReviseWorkflowRecords).toList();
|
|
|
+ if (records != null) {
|
|
|
+ tHReviseWorkflowEntity.records = records;
|
|
|
+ }
|
|
|
+ return tHReviseWorkflowEntity;
|
|
|
+}
|
|
|
+
|
|
|
+Map<String, dynamic> $THReviseWorkflowEntityToJson(THReviseWorkflowEntity entity) {
|
|
|
+ final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
+ data['revise'] = entity.revise?.toJson();
|
|
|
+ data['records'] = entity.records.map((v) => v.toJson()).toList();
|
|
|
+ return data;
|
|
|
+}
|
|
|
+
|
|
|
+extension THReviseWorkflowEntityExtension on THReviseWorkflowEntity {
|
|
|
+ THReviseWorkflowEntity copyWith({
|
|
|
+ THReviseWorkflowRevise? revise,
|
|
|
+ List<THReviseWorkflowRecords>? records,
|
|
|
+ }) {
|
|
|
+ return THReviseWorkflowEntity()
|
|
|
+ ..revise = revise ?? this.revise
|
|
|
+ ..records = records ?? this.records;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+THReviseWorkflowRevise $THReviseWorkflowReviseFromJson(Map<String, dynamic> json) {
|
|
|
+ final THReviseWorkflowRevise tHReviseWorkflowRevise = THReviseWorkflowRevise();
|
|
|
+ final String? id = jsonConvert.convert<String>(json['id']);
|
|
|
+ if (id != null) {
|
|
|
+ tHReviseWorkflowRevise.id = id;
|
|
|
+ }
|
|
|
+ final String? sReviseId = jsonConvert.convert<String>(json['s_revise_id']);
|
|
|
+ if (sReviseId != null) {
|
|
|
+ tHReviseWorkflowRevise.sReviseId = sReviseId;
|
|
|
+ }
|
|
|
+ final String? employerId = jsonConvert.convert<String>(json['employer_id']);
|
|
|
+ if (employerId != null) {
|
|
|
+ tHReviseWorkflowRevise.employerId = employerId;
|
|
|
+ }
|
|
|
+ final String? appliedId = jsonConvert.convert<String>(json['applied_id']);
|
|
|
+ if (appliedId != null) {
|
|
|
+ tHReviseWorkflowRevise.appliedId = appliedId;
|
|
|
+ }
|
|
|
+ final String? sId = jsonConvert.convert<String>(json['s_id']);
|
|
|
+ if (sId != null) {
|
|
|
+ tHReviseWorkflowRevise.sId = sId;
|
|
|
+ }
|
|
|
+ final String? reviseHours = jsonConvert.convert<String>(json['revise_hours']);
|
|
|
+ if (reviseHours != null) {
|
|
|
+ tHReviseWorkflowRevise.reviseHours = reviseHours;
|
|
|
+ }
|
|
|
+ final String? reviseGrossWage = jsonConvert.convert<String>(json['revise_gross_wage']);
|
|
|
+ if (reviseGrossWage != null) {
|
|
|
+ tHReviseWorkflowRevise.reviseGrossWage = reviseGrossWage;
|
|
|
+ }
|
|
|
+ final String? reviseAgencyWage = jsonConvert.convert<String>(json['revise_agency_wage']);
|
|
|
+ if (reviseAgencyWage != null) {
|
|
|
+ tHReviseWorkflowRevise.reviseAgencyWage = reviseAgencyWage;
|
|
|
+ }
|
|
|
+ final int? status = jsonConvert.convert<int>(json['status']);
|
|
|
+ if (status != null) {
|
|
|
+ tHReviseWorkflowRevise.status = status;
|
|
|
+ }
|
|
|
+ final String? reviseMsg = jsonConvert.convert<String>(json['revise_msg']);
|
|
|
+ if (reviseMsg != null) {
|
|
|
+ tHReviseWorkflowRevise.reviseMsg = reviseMsg;
|
|
|
+ }
|
|
|
+ final String? rejectMsg = jsonConvert.convert<String>(json['reject_msg']);
|
|
|
+ if (rejectMsg != null) {
|
|
|
+ tHReviseWorkflowRevise.rejectMsg = rejectMsg;
|
|
|
+ }
|
|
|
+ final String? applyTime = jsonConvert.convert<String>(json['apply_time']);
|
|
|
+ if (applyTime != null) {
|
|
|
+ tHReviseWorkflowRevise.applyTime = applyTime;
|
|
|
+ }
|
|
|
+ final String? completeTime = jsonConvert.convert<String>(json['complete_time']);
|
|
|
+ if (completeTime != null) {
|
|
|
+ tHReviseWorkflowRevise.completeTime = completeTime;
|
|
|
+ }
|
|
|
+ final String? createdAt = jsonConvert.convert<String>(json['created_at']);
|
|
|
+ if (createdAt != null) {
|
|
|
+ tHReviseWorkflowRevise.createdAt = createdAt;
|
|
|
+ }
|
|
|
+ final String? updatedAt = jsonConvert.convert<String>(json['updated_at']);
|
|
|
+ if (updatedAt != null) {
|
|
|
+ tHReviseWorkflowRevise.updatedAt = updatedAt;
|
|
|
+ }
|
|
|
+ final String? deletedAt = jsonConvert.convert<String>(json['deleted_at']);
|
|
|
+ if (deletedAt != null) {
|
|
|
+ tHReviseWorkflowRevise.deletedAt = deletedAt;
|
|
|
+ }
|
|
|
+ final THReviseWorkflowReviseApplied? applied = jsonConvert.convert<THReviseWorkflowReviseApplied>(json['applied']);
|
|
|
+ if (applied != null) {
|
|
|
+ tHReviseWorkflowRevise.applied = applied;
|
|
|
+ }
|
|
|
+ return tHReviseWorkflowRevise;
|
|
|
+}
|
|
|
+
|
|
|
+Map<String, dynamic> $THReviseWorkflowReviseToJson(THReviseWorkflowRevise entity) {
|
|
|
+ final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
+ data['id'] = entity.id;
|
|
|
+ data['s_revise_id'] = entity.sReviseId;
|
|
|
+ data['employer_id'] = entity.employerId;
|
|
|
+ data['applied_id'] = entity.appliedId;
|
|
|
+ data['s_id'] = entity.sId;
|
|
|
+ data['revise_hours'] = entity.reviseHours;
|
|
|
+ data['revise_gross_wage'] = entity.reviseGrossWage;
|
|
|
+ data['revise_agency_wage'] = entity.reviseAgencyWage;
|
|
|
+ data['status'] = entity.status;
|
|
|
+ data['revise_msg'] = entity.reviseMsg;
|
|
|
+ data['reject_msg'] = entity.rejectMsg;
|
|
|
+ data['apply_time'] = entity.applyTime;
|
|
|
+ data['complete_time'] = entity.completeTime;
|
|
|
+ data['created_at'] = entity.createdAt;
|
|
|
+ data['updated_at'] = entity.updatedAt;
|
|
|
+ data['deleted_at'] = entity.deletedAt;
|
|
|
+ data['applied'] = entity.applied?.toJson();
|
|
|
+ return data;
|
|
|
+}
|
|
|
+
|
|
|
+extension THReviseWorkflowReviseExtension on THReviseWorkflowRevise {
|
|
|
+ THReviseWorkflowRevise copyWith({
|
|
|
+ String? id,
|
|
|
+ String? sReviseId,
|
|
|
+ String? employerId,
|
|
|
+ String? appliedId,
|
|
|
+ String? sId,
|
|
|
+ String? reviseHours,
|
|
|
+ String? reviseGrossWage,
|
|
|
+ String? reviseAgencyWage,
|
|
|
+ int? status,
|
|
|
+ String? reviseMsg,
|
|
|
+ String? rejectMsg,
|
|
|
+ String? applyTime,
|
|
|
+ String? completeTime,
|
|
|
+ String? createdAt,
|
|
|
+ String? updatedAt,
|
|
|
+ String? deletedAt,
|
|
|
+ THReviseWorkflowReviseApplied? applied,
|
|
|
+ }) {
|
|
|
+ return THReviseWorkflowRevise()
|
|
|
+ ..id = id ?? this.id
|
|
|
+ ..sReviseId = sReviseId ?? this.sReviseId
|
|
|
+ ..employerId = employerId ?? this.employerId
|
|
|
+ ..appliedId = appliedId ?? this.appliedId
|
|
|
+ ..sId = sId ?? this.sId
|
|
|
+ ..reviseHours = reviseHours ?? this.reviseHours
|
|
|
+ ..reviseGrossWage = reviseGrossWage ?? this.reviseGrossWage
|
|
|
+ ..reviseAgencyWage = reviseAgencyWage ?? this.reviseAgencyWage
|
|
|
+ ..status = status ?? this.status
|
|
|
+ ..reviseMsg = reviseMsg ?? this.reviseMsg
|
|
|
+ ..rejectMsg = rejectMsg ?? this.rejectMsg
|
|
|
+ ..applyTime = applyTime ?? this.applyTime
|
|
|
+ ..completeTime = completeTime ?? this.completeTime
|
|
|
+ ..createdAt = createdAt ?? this.createdAt
|
|
|
+ ..updatedAt = updatedAt ?? this.updatedAt
|
|
|
+ ..deletedAt = deletedAt ?? this.deletedAt
|
|
|
+ ..applied = applied ?? this.applied;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+THReviseWorkflowReviseApplied $THReviseWorkflowReviseAppliedFromJson(Map<String, dynamic> json) {
|
|
|
+ final THReviseWorkflowReviseApplied tHReviseWorkflowReviseApplied = THReviseWorkflowReviseApplied();
|
|
|
+ final String? id = jsonConvert.convert<String>(json['id']);
|
|
|
+ if (id != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.id = id;
|
|
|
+ }
|
|
|
+ final String? jobId = jsonConvert.convert<String>(json['job_id']);
|
|
|
+ if (jobId != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.jobId = jobId;
|
|
|
+ }
|
|
|
+ final String? sId = jsonConvert.convert<String>(json['s_id']);
|
|
|
+ if (sId != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.sId = sId;
|
|
|
+ }
|
|
|
+ final String? memberId = jsonConvert.convert<String>(json['member_id']);
|
|
|
+ if (memberId != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.memberId = memberId;
|
|
|
+ }
|
|
|
+ final String? labourerId = jsonConvert.convert<String>(json['labourer_id']);
|
|
|
+ if (labourerId != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.labourerId = labourerId;
|
|
|
+ }
|
|
|
+ final String? labourerName = jsonConvert.convert<String>(json['labourer_name']);
|
|
|
+ if (labourerName != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.labourerName = labourerName;
|
|
|
+ }
|
|
|
+ final String? labourerNric = jsonConvert.convert<String>(json['labourer_nric']);
|
|
|
+ if (labourerNric != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.labourerNric = labourerNric;
|
|
|
+ }
|
|
|
+ final String? sourceType = jsonConvert.convert<String>(json['source_type']);
|
|
|
+ if (sourceType != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.sourceType = sourceType;
|
|
|
+ }
|
|
|
+ final String? employerId = jsonConvert.convert<String>(json['employer_id']);
|
|
|
+ if (employerId != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.employerId = employerId;
|
|
|
+ }
|
|
|
+ final String? employerName = jsonConvert.convert<String>(json['employer_name']);
|
|
|
+ if (employerName != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.employerName = employerName;
|
|
|
+ }
|
|
|
+ final String? agencyId = jsonConvert.convert<String>(json['agency_id']);
|
|
|
+ if (agencyId != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.agencyId = agencyId;
|
|
|
+ }
|
|
|
+ final String? agencyName = jsonConvert.convert<String>(json['agency_name']);
|
|
|
+ if (agencyName != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.agencyName = agencyName;
|
|
|
+ }
|
|
|
+ final String? jobTitle = jsonConvert.convert<String>(json['job_title']);
|
|
|
+ if (jobTitle != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.jobTitle = jobTitle;
|
|
|
+ }
|
|
|
+ final String? outletId = jsonConvert.convert<String>(json['outlet_id']);
|
|
|
+ if (outletId != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.outletId = outletId;
|
|
|
+ }
|
|
|
+ final String? outletName = jsonConvert.convert<String>(json['outlet_name']);
|
|
|
+ if (outletName != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.outletName = outletName;
|
|
|
+ }
|
|
|
+ final String? ballroomId = jsonConvert.convert<String>(json['ballroom_id']);
|
|
|
+ if (ballroomId != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.ballroomId = ballroomId;
|
|
|
+ }
|
|
|
+ final String? ballroomName = jsonConvert.convert<String>(json['ballroom_name']);
|
|
|
+ if (ballroomName != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.ballroomName = ballroomName;
|
|
|
+ }
|
|
|
+ final String? jobDate = jsonConvert.convert<String>(json['job_date']);
|
|
|
+ if (jobDate != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.jobDate = jobDate;
|
|
|
+ }
|
|
|
+ final String? startTime = jsonConvert.convert<String>(json['start_time']);
|
|
|
+ if (startTime != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.startTime = startTime;
|
|
|
+ }
|
|
|
+ final String? endTime = jsonConvert.convert<String>(json['end_time']);
|
|
|
+ if (endTime != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.endTime = endTime;
|
|
|
+ }
|
|
|
+ final String? workingHours = jsonConvert.convert<String>(json['working_hours']);
|
|
|
+ if (workingHours != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.workingHours = workingHours;
|
|
|
+ }
|
|
|
+ final String? adjustHours = jsonConvert.convert<String>(json['adjust_hours']);
|
|
|
+ if (adjustHours != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.adjustHours = adjustHours;
|
|
|
+ }
|
|
|
+ final String? totalHours = jsonConvert.convert<String>(json['total_hours']);
|
|
|
+ if (totalHours != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.totalHours = totalHours;
|
|
|
+ }
|
|
|
+ final String? hourlyRate = jsonConvert.convert<String>(json['hourly_rate']);
|
|
|
+ if (hourlyRate != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.hourlyRate = hourlyRate;
|
|
|
+ }
|
|
|
+ final String? grossWage = jsonConvert.convert<String>(json['gross_wage']);
|
|
|
+ if (grossWage != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.grossWage = grossWage;
|
|
|
+ }
|
|
|
+ final int? securityClockIn = jsonConvert.convert<int>(json['security_clock_in']);
|
|
|
+ if (securityClockIn != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.securityClockIn = securityClockIn;
|
|
|
+ }
|
|
|
+ final int? securityClockOut = jsonConvert.convert<int>(json['security_clock_out']);
|
|
|
+ if (securityClockOut != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.securityClockOut = securityClockOut;
|
|
|
+ }
|
|
|
+ final int? workClockIn = jsonConvert.convert<int>(json['work_clock_in']);
|
|
|
+ if (workClockIn != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.workClockIn = workClockIn;
|
|
|
+ }
|
|
|
+ final int? workClockOut = jsonConvert.convert<int>(json['work_clock_out']);
|
|
|
+ if (workClockOut != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.workClockOut = workClockOut;
|
|
|
+ }
|
|
|
+ final int? securityIn = jsonConvert.convert<int>(json['security_in']);
|
|
|
+ if (securityIn != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.securityIn = securityIn;
|
|
|
+ }
|
|
|
+ final int? securityOut = jsonConvert.convert<int>(json['security_out']);
|
|
|
+ if (securityOut != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.securityOut = securityOut;
|
|
|
+ }
|
|
|
+ final int? workIn = jsonConvert.convert<int>(json['work_in']);
|
|
|
+ if (workIn != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.workIn = workIn;
|
|
|
+ }
|
|
|
+ final int? workOut = jsonConvert.convert<int>(json['work_out']);
|
|
|
+ if (workOut != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.workOut = workOut;
|
|
|
+ }
|
|
|
+ final int? status = jsonConvert.convert<int>(json['status']);
|
|
|
+ if (status != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.status = status;
|
|
|
+ }
|
|
|
+ final int? remarkStatus = jsonConvert.convert<int>(json['remark_status']);
|
|
|
+ if (remarkStatus != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.remarkStatus = remarkStatus;
|
|
|
+ }
|
|
|
+ final String? createdAt = jsonConvert.convert<String>(json['created_at']);
|
|
|
+ if (createdAt != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.createdAt = createdAt;
|
|
|
+ }
|
|
|
+ final String? updatedAt = jsonConvert.convert<String>(json['updated_at']);
|
|
|
+ if (updatedAt != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.updatedAt = updatedAt;
|
|
|
+ }
|
|
|
+ final int? syncPayroll = jsonConvert.convert<int>(json['sync_payroll']);
|
|
|
+ if (syncPayroll != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.syncPayroll = syncPayroll;
|
|
|
+ }
|
|
|
+ final String? signImage = jsonConvert.convert<String>(json['sign_image']);
|
|
|
+ if (signImage != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.signImage = signImage;
|
|
|
+ }
|
|
|
+ final String? eventName = jsonConvert.convert<String>(json['event_name']);
|
|
|
+ if (eventName != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.eventName = eventName;
|
|
|
+ }
|
|
|
+ final String? eventType = jsonConvert.convert<String>(json['event_type']);
|
|
|
+ if (eventType != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.eventType = eventType;
|
|
|
+ }
|
|
|
+ final int? workingType = jsonConvert.convert<int>(json['working_type']);
|
|
|
+ if (workingType != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.workingType = workingType;
|
|
|
+ }
|
|
|
+ final String? epfEmployer = jsonConvert.convert<String>(json['epf_employer']);
|
|
|
+ if (epfEmployer != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.epfEmployer = epfEmployer;
|
|
|
+ }
|
|
|
+ final String? epfEmployee = jsonConvert.convert<String>(json['epf_employee']);
|
|
|
+ if (epfEmployee != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.epfEmployee = epfEmployee;
|
|
|
+ }
|
|
|
+ final String? epfTotal = jsonConvert.convert<String>(json['epf_total']);
|
|
|
+ if (epfTotal != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.epfTotal = epfTotal;
|
|
|
+ }
|
|
|
+ final String? netPay = jsonConvert.convert<String>(json['net_pay']);
|
|
|
+ if (netPay != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.netPay = netPay;
|
|
|
+ }
|
|
|
+ final String? socso = jsonConvert.convert<String>(json['socso']);
|
|
|
+ if (socso != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.socso = socso;
|
|
|
+ }
|
|
|
+ final int? paymentStatus = jsonConvert.convert<int>(json['payment_status']);
|
|
|
+ if (paymentStatus != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.paymentStatus = paymentStatus;
|
|
|
+ }
|
|
|
+ final String? paidTime = jsonConvert.convert<String>(json['paid_time']);
|
|
|
+ if (paidTime != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.paidTime = paidTime;
|
|
|
+ }
|
|
|
+ final String? agencyRate = jsonConvert.convert<String>(json['agency_rate']);
|
|
|
+ if (agencyRate != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.agencyRate = agencyRate;
|
|
|
+ }
|
|
|
+ final String? agencyWage = jsonConvert.convert<String>(json['agency_wage']);
|
|
|
+ if (agencyWage != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.agencyWage = agencyWage;
|
|
|
+ }
|
|
|
+ final String? remark = jsonConvert.convert<String>(json['remark']);
|
|
|
+ if (remark != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.remark = remark;
|
|
|
+ }
|
|
|
+ final int? reasonType = jsonConvert.convert<int>(json['reason_type']);
|
|
|
+ if (reasonType != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.reasonType = reasonType;
|
|
|
+ }
|
|
|
+ final int? auditReject = jsonConvert.convert<int>(json['audit_reject']);
|
|
|
+ if (auditReject != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.auditReject = auditReject;
|
|
|
+ }
|
|
|
+ final String? reviseHours = jsonConvert.convert<String>(json['revise_hours']);
|
|
|
+ if (reviseHours != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.reviseHours = reviseHours;
|
|
|
+ }
|
|
|
+ final String? reviseGrossWage = jsonConvert.convert<String>(json['revise_gross_wage']);
|
|
|
+ if (reviseGrossWage != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.reviseGrossWage = reviseGrossWage;
|
|
|
+ }
|
|
|
+ final String? reviseAgencyWage = jsonConvert.convert<String>(json['revise_agency_wage']);
|
|
|
+ if (reviseAgencyWage != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.reviseAgencyWage = reviseAgencyWage;
|
|
|
+ }
|
|
|
+ final int? isOt = jsonConvert.convert<int>(json['is_ot']);
|
|
|
+ if (isOt != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.isOt = isOt;
|
|
|
+ }
|
|
|
+ final String? rejectMsg = jsonConvert.convert<String>(json['reject_msg']);
|
|
|
+ if (rejectMsg != null) {
|
|
|
+ tHReviseWorkflowReviseApplied.rejectMsg = rejectMsg;
|
|
|
+ }
|
|
|
+ return tHReviseWorkflowReviseApplied;
|
|
|
+}
|
|
|
+
|
|
|
+Map<String, dynamic> $THReviseWorkflowReviseAppliedToJson(THReviseWorkflowReviseApplied entity) {
|
|
|
+ final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
+ data['id'] = entity.id;
|
|
|
+ data['job_id'] = entity.jobId;
|
|
|
+ data['s_id'] = entity.sId;
|
|
|
+ data['member_id'] = entity.memberId;
|
|
|
+ data['labourer_id'] = entity.labourerId;
|
|
|
+ data['labourer_name'] = entity.labourerName;
|
|
|
+ data['labourer_nric'] = entity.labourerNric;
|
|
|
+ data['source_type'] = entity.sourceType;
|
|
|
+ data['employer_id'] = entity.employerId;
|
|
|
+ data['employer_name'] = entity.employerName;
|
|
|
+ data['agency_id'] = entity.agencyId;
|
|
|
+ data['agency_name'] = entity.agencyName;
|
|
|
+ data['job_title'] = entity.jobTitle;
|
|
|
+ data['outlet_id'] = entity.outletId;
|
|
|
+ data['outlet_name'] = entity.outletName;
|
|
|
+ data['ballroom_id'] = entity.ballroomId;
|
|
|
+ data['ballroom_name'] = entity.ballroomName;
|
|
|
+ data['job_date'] = entity.jobDate;
|
|
|
+ data['start_time'] = entity.startTime;
|
|
|
+ data['end_time'] = entity.endTime;
|
|
|
+ data['working_hours'] = entity.workingHours;
|
|
|
+ data['adjust_hours'] = entity.adjustHours;
|
|
|
+ data['total_hours'] = entity.totalHours;
|
|
|
+ data['hourly_rate'] = entity.hourlyRate;
|
|
|
+ data['gross_wage'] = entity.grossWage;
|
|
|
+ data['security_clock_in'] = entity.securityClockIn;
|
|
|
+ data['security_clock_out'] = entity.securityClockOut;
|
|
|
+ data['work_clock_in'] = entity.workClockIn;
|
|
|
+ data['work_clock_out'] = entity.workClockOut;
|
|
|
+ data['security_in'] = entity.securityIn;
|
|
|
+ data['security_out'] = entity.securityOut;
|
|
|
+ data['work_in'] = entity.workIn;
|
|
|
+ data['work_out'] = entity.workOut;
|
|
|
+ data['status'] = entity.status;
|
|
|
+ data['remark_status'] = entity.remarkStatus;
|
|
|
+ data['created_at'] = entity.createdAt;
|
|
|
+ data['updated_at'] = entity.updatedAt;
|
|
|
+ data['sync_payroll'] = entity.syncPayroll;
|
|
|
+ data['sign_image'] = entity.signImage;
|
|
|
+ data['event_name'] = entity.eventName;
|
|
|
+ data['event_type'] = entity.eventType;
|
|
|
+ data['working_type'] = entity.workingType;
|
|
|
+ data['epf_employer'] = entity.epfEmployer;
|
|
|
+ data['epf_employee'] = entity.epfEmployee;
|
|
|
+ data['epf_total'] = entity.epfTotal;
|
|
|
+ data['net_pay'] = entity.netPay;
|
|
|
+ data['socso'] = entity.socso;
|
|
|
+ data['payment_status'] = entity.paymentStatus;
|
|
|
+ data['paid_time'] = entity.paidTime;
|
|
|
+ data['agency_rate'] = entity.agencyRate;
|
|
|
+ data['agency_wage'] = entity.agencyWage;
|
|
|
+ data['remark'] = entity.remark;
|
|
|
+ data['reason_type'] = entity.reasonType;
|
|
|
+ data['audit_reject'] = entity.auditReject;
|
|
|
+ data['revise_hours'] = entity.reviseHours;
|
|
|
+ data['revise_gross_wage'] = entity.reviseGrossWage;
|
|
|
+ data['revise_agency_wage'] = entity.reviseAgencyWage;
|
|
|
+ data['is_ot'] = entity.isOt;
|
|
|
+ data['reject_msg'] = entity.rejectMsg;
|
|
|
+ return data;
|
|
|
+}
|
|
|
+
|
|
|
+extension THReviseWorkflowReviseAppliedExtension on THReviseWorkflowReviseApplied {
|
|
|
+ THReviseWorkflowReviseApplied copyWith({
|
|
|
+ String? id,
|
|
|
+ String? jobId,
|
|
|
+ String? sId,
|
|
|
+ String? memberId,
|
|
|
+ String? labourerId,
|
|
|
+ String? labourerName,
|
|
|
+ String? labourerNric,
|
|
|
+ String? sourceType,
|
|
|
+ String? employerId,
|
|
|
+ String? employerName,
|
|
|
+ String? agencyId,
|
|
|
+ String? agencyName,
|
|
|
+ String? jobTitle,
|
|
|
+ String? outletId,
|
|
|
+ String? outletName,
|
|
|
+ String? ballroomId,
|
|
|
+ String? ballroomName,
|
|
|
+ String? jobDate,
|
|
|
+ String? startTime,
|
|
|
+ String? endTime,
|
|
|
+ String? workingHours,
|
|
|
+ String? adjustHours,
|
|
|
+ String? totalHours,
|
|
|
+ String? hourlyRate,
|
|
|
+ String? grossWage,
|
|
|
+ int? securityClockIn,
|
|
|
+ int? securityClockOut,
|
|
|
+ int? workClockIn,
|
|
|
+ int? workClockOut,
|
|
|
+ int? securityIn,
|
|
|
+ int? securityOut,
|
|
|
+ int? workIn,
|
|
|
+ int? workOut,
|
|
|
+ int? status,
|
|
|
+ int? remarkStatus,
|
|
|
+ String? createdAt,
|
|
|
+ String? updatedAt,
|
|
|
+ int? syncPayroll,
|
|
|
+ String? signImage,
|
|
|
+ String? eventName,
|
|
|
+ String? eventType,
|
|
|
+ int? workingType,
|
|
|
+ String? epfEmployer,
|
|
|
+ String? epfEmployee,
|
|
|
+ String? epfTotal,
|
|
|
+ String? netPay,
|
|
|
+ String? socso,
|
|
|
+ int? paymentStatus,
|
|
|
+ String? paidTime,
|
|
|
+ String? agencyRate,
|
|
|
+ String? agencyWage,
|
|
|
+ String? remark,
|
|
|
+ int? reasonType,
|
|
|
+ int? auditReject,
|
|
|
+ String? reviseHours,
|
|
|
+ String? reviseGrossWage,
|
|
|
+ String? reviseAgencyWage,
|
|
|
+ int? isOt,
|
|
|
+ String? rejectMsg,
|
|
|
+ }) {
|
|
|
+ return THReviseWorkflowReviseApplied()
|
|
|
+ ..id = id ?? this.id
|
|
|
+ ..jobId = jobId ?? this.jobId
|
|
|
+ ..sId = sId ?? this.sId
|
|
|
+ ..memberId = memberId ?? this.memberId
|
|
|
+ ..labourerId = labourerId ?? this.labourerId
|
|
|
+ ..labourerName = labourerName ?? this.labourerName
|
|
|
+ ..labourerNric = labourerNric ?? this.labourerNric
|
|
|
+ ..sourceType = sourceType ?? this.sourceType
|
|
|
+ ..employerId = employerId ?? this.employerId
|
|
|
+ ..employerName = employerName ?? this.employerName
|
|
|
+ ..agencyId = agencyId ?? this.agencyId
|
|
|
+ ..agencyName = agencyName ?? this.agencyName
|
|
|
+ ..jobTitle = jobTitle ?? this.jobTitle
|
|
|
+ ..outletId = outletId ?? this.outletId
|
|
|
+ ..outletName = outletName ?? this.outletName
|
|
|
+ ..ballroomId = ballroomId ?? this.ballroomId
|
|
|
+ ..ballroomName = ballroomName ?? this.ballroomName
|
|
|
+ ..jobDate = jobDate ?? this.jobDate
|
|
|
+ ..startTime = startTime ?? this.startTime
|
|
|
+ ..endTime = endTime ?? this.endTime
|
|
|
+ ..workingHours = workingHours ?? this.workingHours
|
|
|
+ ..adjustHours = adjustHours ?? this.adjustHours
|
|
|
+ ..totalHours = totalHours ?? this.totalHours
|
|
|
+ ..hourlyRate = hourlyRate ?? this.hourlyRate
|
|
|
+ ..grossWage = grossWage ?? this.grossWage
|
|
|
+ ..securityClockIn = securityClockIn ?? this.securityClockIn
|
|
|
+ ..securityClockOut = securityClockOut ?? this.securityClockOut
|
|
|
+ ..workClockIn = workClockIn ?? this.workClockIn
|
|
|
+ ..workClockOut = workClockOut ?? this.workClockOut
|
|
|
+ ..securityIn = securityIn ?? this.securityIn
|
|
|
+ ..securityOut = securityOut ?? this.securityOut
|
|
|
+ ..workIn = workIn ?? this.workIn
|
|
|
+ ..workOut = workOut ?? this.workOut
|
|
|
+ ..status = status ?? this.status
|
|
|
+ ..remarkStatus = remarkStatus ?? this.remarkStatus
|
|
|
+ ..createdAt = createdAt ?? this.createdAt
|
|
|
+ ..updatedAt = updatedAt ?? this.updatedAt
|
|
|
+ ..syncPayroll = syncPayroll ?? this.syncPayroll
|
|
|
+ ..signImage = signImage ?? this.signImage
|
|
|
+ ..eventName = eventName ?? this.eventName
|
|
|
+ ..eventType = eventType ?? this.eventType
|
|
|
+ ..workingType = workingType ?? this.workingType
|
|
|
+ ..epfEmployer = epfEmployer ?? this.epfEmployer
|
|
|
+ ..epfEmployee = epfEmployee ?? this.epfEmployee
|
|
|
+ ..epfTotal = epfTotal ?? this.epfTotal
|
|
|
+ ..netPay = netPay ?? this.netPay
|
|
|
+ ..socso = socso ?? this.socso
|
|
|
+ ..paymentStatus = paymentStatus ?? this.paymentStatus
|
|
|
+ ..paidTime = paidTime ?? this.paidTime
|
|
|
+ ..agencyRate = agencyRate ?? this.agencyRate
|
|
|
+ ..agencyWage = agencyWage ?? this.agencyWage
|
|
|
+ ..remark = remark ?? this.remark
|
|
|
+ ..reasonType = reasonType ?? this.reasonType
|
|
|
+ ..auditReject = auditReject ?? this.auditReject
|
|
|
+ ..reviseHours = reviseHours ?? this.reviseHours
|
|
|
+ ..reviseGrossWage = reviseGrossWage ?? this.reviseGrossWage
|
|
|
+ ..reviseAgencyWage = reviseAgencyWage ?? this.reviseAgencyWage
|
|
|
+ ..isOt = isOt ?? this.isOt
|
|
|
+ ..rejectMsg = rejectMsg ?? this.rejectMsg;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+THReviseWorkflowRecords $THReviseWorkflowRecordsFromJson(Map<String, dynamic> json) {
|
|
|
+ final THReviseWorkflowRecords tHReviseWorkflowRecords = THReviseWorkflowRecords();
|
|
|
+ final String? id = jsonConvert.convert<String>(json['id']);
|
|
|
+ if (id != null) {
|
|
|
+ tHReviseWorkflowRecords.id = id;
|
|
|
+ }
|
|
|
+ final String? operationName = jsonConvert.convert<String>(json['operation_name']);
|
|
|
+ if (operationName != null) {
|
|
|
+ tHReviseWorkflowRecords.operationName = operationName;
|
|
|
+ }
|
|
|
+ final String? dataType = jsonConvert.convert<String>(json['data_type']);
|
|
|
+ if (dataType != null) {
|
|
|
+ tHReviseWorkflowRecords.dataType = dataType;
|
|
|
+ }
|
|
|
+ final String? desc = jsonConvert.convert<String>(json['desc']);
|
|
|
+ if (desc != null) {
|
|
|
+ tHReviseWorkflowRecords.desc = desc;
|
|
|
+ }
|
|
|
+ final THReviseWorkflowRecordsContent? content = jsonConvert.convert<THReviseWorkflowRecordsContent>(json['content']);
|
|
|
+ if (content != null) {
|
|
|
+ tHReviseWorkflowRecords.content = content;
|
|
|
+ }
|
|
|
+ final String? createdAt = jsonConvert.convert<String>(json['created_at']);
|
|
|
+ if (createdAt != null) {
|
|
|
+ tHReviseWorkflowRecords.createdAt = createdAt;
|
|
|
+ }
|
|
|
+ final String? actClass = jsonConvert.convert<String>(json['act_class']);
|
|
|
+ if (actClass != null) {
|
|
|
+ tHReviseWorkflowRecords.actClass = actClass;
|
|
|
+ }
|
|
|
+ final String? actText = jsonConvert.convert<String>(json['act_text']);
|
|
|
+ if (actText != null) {
|
|
|
+ tHReviseWorkflowRecords.actText = actText;
|
|
|
+ }
|
|
|
+ return tHReviseWorkflowRecords;
|
|
|
+}
|
|
|
+
|
|
|
+Map<String, dynamic> $THReviseWorkflowRecordsToJson(THReviseWorkflowRecords entity) {
|
|
|
+ final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
+ data['id'] = entity.id;
|
|
|
+ data['operation_name'] = entity.operationName;
|
|
|
+ data['data_type'] = entity.dataType;
|
|
|
+ data['desc'] = entity.desc;
|
|
|
+ data['content'] = entity.content?.toJson();
|
|
|
+ data['created_at'] = entity.createdAt;
|
|
|
+ data['act_class'] = entity.actClass;
|
|
|
+ data['act_text'] = entity.actText;
|
|
|
+ return data;
|
|
|
+}
|
|
|
+
|
|
|
+extension THReviseWorkflowRecordsExtension on THReviseWorkflowRecords {
|
|
|
+ THReviseWorkflowRecords copyWith({
|
|
|
+ String? id,
|
|
|
+ String? operationName,
|
|
|
+ String? dataType,
|
|
|
+ String? desc,
|
|
|
+ THReviseWorkflowRecordsContent? content,
|
|
|
+ String? createdAt,
|
|
|
+ String? actClass,
|
|
|
+ String? actText,
|
|
|
+ }) {
|
|
|
+ return THReviseWorkflowRecords()
|
|
|
+ ..id = id ?? this.id
|
|
|
+ ..operationName = operationName ?? this.operationName
|
|
|
+ ..dataType = dataType ?? this.dataType
|
|
|
+ ..desc = desc ?? this.desc
|
|
|
+ ..content = content ?? this.content
|
|
|
+ ..createdAt = createdAt ?? this.createdAt
|
|
|
+ ..actClass = actClass ?? this.actClass
|
|
|
+ ..actText = actText ?? this.actText;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+THReviseWorkflowRecordsContent $THReviseWorkflowRecordsContentFromJson(Map<String, dynamic> json) {
|
|
|
+ final THReviseWorkflowRecordsContent tHReviseWorkflowRecordsContent = THReviseWorkflowRecordsContent();
|
|
|
+ final THReviseWorkflowRecordsContentReviseHours? reviseHours = jsonConvert.convert<THReviseWorkflowRecordsContentReviseHours>(json['revise_hours']);
|
|
|
+ if (reviseHours != null) {
|
|
|
+ tHReviseWorkflowRecordsContent.reviseHours = reviseHours;
|
|
|
+ }
|
|
|
+ final THReviseWorkflowRecordsContentReviseMsg? reviseMsg = jsonConvert.convert<THReviseWorkflowRecordsContentReviseMsg>(json['revise_msg']);
|
|
|
+ if (reviseMsg != null) {
|
|
|
+ tHReviseWorkflowRecordsContent.reviseMsg = reviseMsg;
|
|
|
+ }
|
|
|
+ return tHReviseWorkflowRecordsContent;
|
|
|
+}
|
|
|
+
|
|
|
+Map<String, dynamic> $THReviseWorkflowRecordsContentToJson(THReviseWorkflowRecordsContent entity) {
|
|
|
+ final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
+ data['revise_hours'] = entity.reviseHours?.toJson();
|
|
|
+ data['revise_msg'] = entity.reviseMsg?.toJson();
|
|
|
+ return data;
|
|
|
+}
|
|
|
+
|
|
|
+extension THReviseWorkflowRecordsContentExtension on THReviseWorkflowRecordsContent {
|
|
|
+ THReviseWorkflowRecordsContent copyWith({
|
|
|
+ THReviseWorkflowRecordsContentReviseHours? reviseHours,
|
|
|
+ THReviseWorkflowRecordsContentReviseMsg? reviseMsg,
|
|
|
+ }) {
|
|
|
+ return THReviseWorkflowRecordsContent()
|
|
|
+ ..reviseHours = reviseHours ?? this.reviseHours
|
|
|
+ ..reviseMsg = reviseMsg ?? this.reviseMsg;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+THReviseWorkflowRecordsContentReviseHours $THReviseWorkflowRecordsContentReviseHoursFromJson(Map<String, dynamic> json) {
|
|
|
+ final THReviseWorkflowRecordsContentReviseHours tHReviseWorkflowRecordsContentReviseHours = THReviseWorkflowRecordsContentReviseHours();
|
|
|
+ final String? field = jsonConvert.convert<String>(json['field']);
|
|
|
+ if (field != null) {
|
|
|
+ tHReviseWorkflowRecordsContentReviseHours.field = field;
|
|
|
+ }
|
|
|
+ final String? value = jsonConvert.convert<String>(json['value']);
|
|
|
+ if (value != null) {
|
|
|
+ tHReviseWorkflowRecordsContentReviseHours.value = value;
|
|
|
+ }
|
|
|
+ return tHReviseWorkflowRecordsContentReviseHours;
|
|
|
+}
|
|
|
+
|
|
|
+Map<String, dynamic> $THReviseWorkflowRecordsContentReviseHoursToJson(THReviseWorkflowRecordsContentReviseHours entity) {
|
|
|
+ final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
+ data['field'] = entity.field;
|
|
|
+ data['value'] = entity.value;
|
|
|
+ return data;
|
|
|
+}
|
|
|
+
|
|
|
+extension THReviseWorkflowRecordsContentReviseHoursExtension on THReviseWorkflowRecordsContentReviseHours {
|
|
|
+ THReviseWorkflowRecordsContentReviseHours copyWith({
|
|
|
+ String? field,
|
|
|
+ String? value,
|
|
|
+ }) {
|
|
|
+ return THReviseWorkflowRecordsContentReviseHours()
|
|
|
+ ..field = field ?? this.field
|
|
|
+ ..value = value ?? this.value;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+THReviseWorkflowRecordsContentReviseMsg $THReviseWorkflowRecordsContentReviseMsgFromJson(Map<String, dynamic> json) {
|
|
|
+ final THReviseWorkflowRecordsContentReviseMsg tHReviseWorkflowRecordsContentReviseMsg = THReviseWorkflowRecordsContentReviseMsg();
|
|
|
+ final String? field = jsonConvert.convert<String>(json['field']);
|
|
|
+ if (field != null) {
|
|
|
+ tHReviseWorkflowRecordsContentReviseMsg.field = field;
|
|
|
+ }
|
|
|
+ final String? value = jsonConvert.convert<String>(json['value']);
|
|
|
+ if (value != null) {
|
|
|
+ tHReviseWorkflowRecordsContentReviseMsg.value = value;
|
|
|
+ }
|
|
|
+ return tHReviseWorkflowRecordsContentReviseMsg;
|
|
|
+}
|
|
|
+
|
|
|
+Map<String, dynamic> $THReviseWorkflowRecordsContentReviseMsgToJson(THReviseWorkflowRecordsContentReviseMsg entity) {
|
|
|
+ final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
+ data['field'] = entity.field;
|
|
|
+ data['value'] = entity.value;
|
|
|
+ return data;
|
|
|
+}
|
|
|
+
|
|
|
+extension THReviseWorkflowRecordsContentReviseMsgExtension on THReviseWorkflowRecordsContentReviseMsg {
|
|
|
+ THReviseWorkflowRecordsContentReviseMsg copyWith({
|
|
|
+ String? field,
|
|
|
+ String? value,
|
|
|
+ }) {
|
|
|
+ return THReviseWorkflowRecordsContentReviseMsg()
|
|
|
+ ..field = field ?? this.field
|
|
|
+ ..value = value ?? this.value;
|
|
|
+ }
|
|
|
+}
|