|
@@ -8,6 +8,7 @@ import 'package:domain/entity/response/add_edit_revise_view_s_g_entity.dart';
|
|
import 'package:domain/entity/response/attendance_entity.dart';
|
|
import 'package:domain/entity/response/attendance_entity.dart';
|
|
import 'package:domain/entity/response/check_success_entity.dart';
|
|
import 'package:domain/entity/response/check_success_entity.dart';
|
|
import 'package:domain/entity/response/device_list_entity.dart';
|
|
import 'package:domain/entity/response/device_list_entity.dart';
|
|
|
|
+import 'package:domain/entity/response/fiance_report_entity.dart';
|
|
import 'package:domain/entity/response/hotel_info_entity.dart';
|
|
import 'package:domain/entity/response/hotel_info_entity.dart';
|
|
import 'package:domain/entity/response/id_name_entity.dart';
|
|
import 'package:domain/entity/response/id_name_entity.dart';
|
|
import 'package:domain/entity/response/job_applied_edit_index_s_g_entity.dart';
|
|
import 'package:domain/entity/response/job_applied_edit_index_s_g_entity.dart';
|
|
@@ -32,6 +33,7 @@ import 'package:domain/entity/response/job_template_edit_index_entity.dart';
|
|
import 'package:domain/entity/response/job_template_s_g_entity.dart';
|
|
import 'package:domain/entity/response/job_template_s_g_entity.dart';
|
|
import 'package:domain/entity/response/job_title_edit_index_entity.dart';
|
|
import 'package:domain/entity/response/job_title_edit_index_entity.dart';
|
|
import 'package:domain/entity/response/job_title_s_g_entity.dart';
|
|
import 'package:domain/entity/response/job_title_s_g_entity.dart';
|
|
|
|
+import 'package:domain/entity/response/labour_report_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_edit_index_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_edit_index_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_index_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_index_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_list_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_list_entity.dart';
|
|
@@ -46,6 +48,7 @@ import 'package:domain/entity/response/staff_detail_s_g_entity.dart';
|
|
import 'package:domain/entity/response/staff_job_history_s_g_entity.dart';
|
|
import 'package:domain/entity/response/staff_job_history_s_g_entity.dart';
|
|
import 'package:domain/entity/response/staff_labour_history_entity.dart';
|
|
import 'package:domain/entity/response/staff_labour_history_entity.dart';
|
|
import 'package:domain/entity/response/staff_remark_history_entity.dart';
|
|
import 'package:domain/entity/response/staff_remark_history_entity.dart';
|
|
|
|
+import 'package:domain/entity/response/staff_request_report_entity.dart';
|
|
import 'package:domain/entity/response/staff_review_history_s_g_entity.dart';
|
|
import 'package:domain/entity/response/staff_review_history_s_g_entity.dart';
|
|
import 'package:domain/entity/server_time.dart';
|
|
import 'package:domain/entity/server_time.dart';
|
|
|
|
|
|
@@ -193,6 +196,12 @@ class JsonConvert {
|
|
if (<DeviceListRows>[] is M) {
|
|
if (<DeviceListRows>[] is M) {
|
|
return data.map<DeviceListRows>((Map<String, dynamic> e) => DeviceListRows.fromJson(e)).toList() as M;
|
|
return data.map<DeviceListRows>((Map<String, dynamic> e) => DeviceListRows.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
|
|
+ if (<FianceReportEntity>[] is M) {
|
|
|
|
+ return data.map<FianceReportEntity>((Map<String, dynamic> e) => FianceReportEntity.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<FianceReportRateList>[] is M) {
|
|
|
|
+ return data.map<FianceReportRateList>((Map<String, dynamic> e) => FianceReportRateList.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
if (<HotelInfoEntity>[] is M) {
|
|
if (<HotelInfoEntity>[] is M) {
|
|
return data.map<HotelInfoEntity>((Map<String, dynamic> e) => HotelInfoEntity.fromJson(e)).toList() as M;
|
|
return data.map<HotelInfoEntity>((Map<String, dynamic> e) => HotelInfoEntity.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
@@ -355,6 +364,15 @@ class JsonConvert {
|
|
if (<JobTitleSGRows>[] is M) {
|
|
if (<JobTitleSGRows>[] is M) {
|
|
return data.map<JobTitleSGRows>((Map<String, dynamic> e) => JobTitleSGRows.fromJson(e)).toList() as M;
|
|
return data.map<JobTitleSGRows>((Map<String, dynamic> e) => JobTitleSGRows.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
|
|
+ if (<LabourReportEntity>[] is M) {
|
|
|
|
+ return data.map<LabourReportEntity>((Map<String, dynamic> e) => LabourReportEntity.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<LabourReportRows>[] is M) {
|
|
|
|
+ return data.map<LabourReportRows>((Map<String, dynamic> e) => LabourReportRows.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<LabourReportTotal>[] is M) {
|
|
|
|
+ return data.map<LabourReportTotal>((Map<String, dynamic> e) => LabourReportTotal.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
if (<LabourRequestEditIndexEntity>[] is M) {
|
|
if (<LabourRequestEditIndexEntity>[] is M) {
|
|
return data.map<LabourRequestEditIndexEntity>((Map<String, dynamic> e) => LabourRequestEditIndexEntity.fromJson(e)).toList() as M;
|
|
return data.map<LabourRequestEditIndexEntity>((Map<String, dynamic> e) => LabourRequestEditIndexEntity.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
@@ -463,6 +481,9 @@ class JsonConvert {
|
|
if (<StaffRemarkHistoryRows>[] is M) {
|
|
if (<StaffRemarkHistoryRows>[] is M) {
|
|
return data.map<StaffRemarkHistoryRows>((Map<String, dynamic> e) => StaffRemarkHistoryRows.fromJson(e)).toList() as M;
|
|
return data.map<StaffRemarkHistoryRows>((Map<String, dynamic> e) => StaffRemarkHistoryRows.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
|
|
+ if (<StaffRequestReportEntity>[] is M) {
|
|
|
|
+ return data.map<StaffRequestReportEntity>((Map<String, dynamic> e) => StaffRequestReportEntity.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
if (<StaffReviewHistorySGEntity>[] is M) {
|
|
if (<StaffReviewHistorySGEntity>[] is M) {
|
|
return data.map<StaffReviewHistorySGEntity>((Map<String, dynamic> e) => StaffReviewHistorySGEntity.fromJson(e)).toList() as M;
|
|
return data.map<StaffReviewHistorySGEntity>((Map<String, dynamic> e) => StaffReviewHistorySGEntity.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
@@ -498,6 +519,8 @@ class JsonConvertClassCollection {
|
|
(CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
|
|
(CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
|
|
(DeviceListEntity).toString(): DeviceListEntity.fromJson,
|
|
(DeviceListEntity).toString(): DeviceListEntity.fromJson,
|
|
(DeviceListRows).toString(): DeviceListRows.fromJson,
|
|
(DeviceListRows).toString(): DeviceListRows.fromJson,
|
|
|
|
+ (FianceReportEntity).toString(): FianceReportEntity.fromJson,
|
|
|
|
+ (FianceReportRateList).toString(): FianceReportRateList.fromJson,
|
|
(HotelInfoEntity).toString(): HotelInfoEntity.fromJson,
|
|
(HotelInfoEntity).toString(): HotelInfoEntity.fromJson,
|
|
(HotelInfoMenus).toString(): HotelInfoMenus.fromJson,
|
|
(HotelInfoMenus).toString(): HotelInfoMenus.fromJson,
|
|
(HotelInfoMenusChildren).toString(): HotelInfoMenusChildren.fromJson,
|
|
(HotelInfoMenusChildren).toString(): HotelInfoMenusChildren.fromJson,
|
|
@@ -552,6 +575,9 @@ class JsonConvertClassCollection {
|
|
(JobTitleEditIndexTemplate).toString(): JobTitleEditIndexTemplate.fromJson,
|
|
(JobTitleEditIndexTemplate).toString(): JobTitleEditIndexTemplate.fromJson,
|
|
(JobTitleSGEntity).toString(): JobTitleSGEntity.fromJson,
|
|
(JobTitleSGEntity).toString(): JobTitleSGEntity.fromJson,
|
|
(JobTitleSGRows).toString(): JobTitleSGRows.fromJson,
|
|
(JobTitleSGRows).toString(): JobTitleSGRows.fromJson,
|
|
|
|
+ (LabourReportEntity).toString(): LabourReportEntity.fromJson,
|
|
|
|
+ (LabourReportRows).toString(): LabourReportRows.fromJson,
|
|
|
|
+ (LabourReportTotal).toString(): LabourReportTotal.fromJson,
|
|
(LabourRequestEditIndexEntity).toString(): LabourRequestEditIndexEntity.fromJson,
|
|
(LabourRequestEditIndexEntity).toString(): LabourRequestEditIndexEntity.fromJson,
|
|
(LabourRequestEditIndexTemplateList).toString(): LabourRequestEditIndexTemplateList.fromJson,
|
|
(LabourRequestEditIndexTemplateList).toString(): LabourRequestEditIndexTemplateList.fromJson,
|
|
(LabourRequestEditIndexDepartmentList).toString(): LabourRequestEditIndexDepartmentList.fromJson,
|
|
(LabourRequestEditIndexDepartmentList).toString(): LabourRequestEditIndexDepartmentList.fromJson,
|
|
@@ -588,6 +614,7 @@ class JsonConvertClassCollection {
|
|
(StaffLabourHistoryRowsWorkOut).toString(): StaffLabourHistoryRowsWorkOut.fromJson,
|
|
(StaffLabourHistoryRowsWorkOut).toString(): StaffLabourHistoryRowsWorkOut.fromJson,
|
|
(StaffRemarkHistoryEntity).toString(): StaffRemarkHistoryEntity.fromJson,
|
|
(StaffRemarkHistoryEntity).toString(): StaffRemarkHistoryEntity.fromJson,
|
|
(StaffRemarkHistoryRows).toString(): StaffRemarkHistoryRows.fromJson,
|
|
(StaffRemarkHistoryRows).toString(): StaffRemarkHistoryRows.fromJson,
|
|
|
|
+ (StaffRequestReportEntity).toString(): StaffRequestReportEntity.fromJson,
|
|
(StaffReviewHistorySGEntity).toString(): StaffReviewHistorySGEntity.fromJson,
|
|
(StaffReviewHistorySGEntity).toString(): StaffReviewHistorySGEntity.fromJson,
|
|
(StaffReviewHistorySGReviews).toString(): StaffReviewHistorySGReviews.fromJson,
|
|
(StaffReviewHistorySGReviews).toString(): StaffReviewHistorySGReviews.fromJson,
|
|
(ServerTime).toString(): ServerTime.fromJson,
|
|
(ServerTime).toString(): ServerTime.fromJson,
|