|
@@ -4,6 +4,7 @@
|
|
|
|
|
|
// This file is automatically generated. DO NOT EDIT, all your changes would be lost.
|
|
// This file is automatically generated. DO NOT EDIT, all your changes would be lost.
|
|
import 'package:flutter/material.dart' show debugPrint;
|
|
import 'package:flutter/material.dart' show debugPrint;
|
|
|
|
+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';
|
|
@@ -37,6 +38,9 @@ import 'package:domain/entity/response/labour_request_list_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_s_g_add_index_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_s_g_add_index_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_s_g_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_s_g_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_work_flow_entity.dart';
|
|
import 'package:domain/entity/response/labour_request_work_flow_entity.dart';
|
|
|
|
+import 'package:domain/entity/response/revise_index_s_g_entity.dart';
|
|
|
|
+import 'package:domain/entity/response/revise_list_s_g_entity.dart';
|
|
|
|
+import 'package:domain/entity/response/revise_log_s_g_entity.dart';
|
|
import 'package:domain/entity/response/staff_detail_entity.dart';
|
|
import 'package:domain/entity/response/staff_detail_entity.dart';
|
|
import 'package:domain/entity/response/staff_detail_s_g_entity.dart';
|
|
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';
|
|
@@ -171,6 +175,9 @@ class JsonConvert {
|
|
|
|
|
|
//list is returned by type
|
|
//list is returned by type
|
|
static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
|
|
static M? _getListChildType<M>(List<Map<String, dynamic>> data) {
|
|
|
|
+ if (<AddEditReviseViewSGEntity>[] is M) {
|
|
|
|
+ return data.map<AddEditReviseViewSGEntity>((Map<String, dynamic> e) => AddEditReviseViewSGEntity.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
if (<AttendanceEntity>[] is M) {
|
|
if (<AttendanceEntity>[] is M) {
|
|
return data.map<AttendanceEntity>((Map<String, dynamic> e) => AttendanceEntity.fromJson(e)).toList() as M;
|
|
return data.map<AttendanceEntity>((Map<String, dynamic> e) => AttendanceEntity.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
@@ -390,6 +397,33 @@ class JsonConvert {
|
|
if (<LabourRequestWorkFlowRecords>[] is M) {
|
|
if (<LabourRequestWorkFlowRecords>[] is M) {
|
|
return data.map<LabourRequestWorkFlowRecords>((Map<String, dynamic> e) => LabourRequestWorkFlowRecords.fromJson(e)).toList() as M;
|
|
return data.map<LabourRequestWorkFlowRecords>((Map<String, dynamic> e) => LabourRequestWorkFlowRecords.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
|
|
+ if (<ReviseIndexSGEntity>[] is M) {
|
|
|
|
+ return data.map<ReviseIndexSGEntity>((Map<String, dynamic> e) => ReviseIndexSGEntity.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<ReviseIndexSGStatusList>[] is M) {
|
|
|
|
+ return data.map<ReviseIndexSGStatusList>((Map<String, dynamic> e) => ReviseIndexSGStatusList.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<ReviseListSGEntity>[] is M) {
|
|
|
|
+ return data.map<ReviseListSGEntity>((Map<String, dynamic> e) => ReviseListSGEntity.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<ReviseListSGRows>[] is M) {
|
|
|
|
+ return data.map<ReviseListSGRows>((Map<String, dynamic> e) => ReviseListSGRows.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<ReviseLogSGEntity>[] is M) {
|
|
|
|
+ return data.map<ReviseLogSGEntity>((Map<String, dynamic> e) => ReviseLogSGEntity.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<ReviseLogSGRecords>[] is M) {
|
|
|
|
+ return data.map<ReviseLogSGRecords>((Map<String, dynamic> e) => ReviseLogSGRecords.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<ReviseLogSGRecordsContent>[] is M) {
|
|
|
|
+ return data.map<ReviseLogSGRecordsContent>((Map<String, dynamic> e) => ReviseLogSGRecordsContent.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<ReviseLogSGRecordsContentReviseHours>[] is M) {
|
|
|
|
+ return data.map<ReviseLogSGRecordsContentReviseHours>((Map<String, dynamic> e) => ReviseLogSGRecordsContentReviseHours.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
|
|
+ if (<ReviseLogSGRecordsContentReviseMsg>[] is M) {
|
|
|
|
+ return data.map<ReviseLogSGRecordsContentReviseMsg>((Map<String, dynamic> e) => ReviseLogSGRecordsContentReviseMsg.fromJson(e)).toList() as M;
|
|
|
|
+ }
|
|
if (<StaffDetailEntity>[] is M) {
|
|
if (<StaffDetailEntity>[] is M) {
|
|
return data.map<StaffDetailEntity>((Map<String, dynamic> e) => StaffDetailEntity.fromJson(e)).toList() as M;
|
|
return data.map<StaffDetailEntity>((Map<String, dynamic> e) => StaffDetailEntity.fromJson(e)).toList() as M;
|
|
}
|
|
}
|
|
@@ -461,6 +495,7 @@ class JsonConvert {
|
|
|
|
|
|
class JsonConvertClassCollection {
|
|
class JsonConvertClassCollection {
|
|
Map<String, JsonConvertFunction> convertFuncMap = {
|
|
Map<String, JsonConvertFunction> convertFuncMap = {
|
|
|
|
+ (AddEditReviseViewSGEntity).toString(): AddEditReviseViewSGEntity.fromJson,
|
|
(AttendanceEntity).toString(): AttendanceEntity.fromJson,
|
|
(AttendanceEntity).toString(): AttendanceEntity.fromJson,
|
|
(AttendanceList).toString(): AttendanceList.fromJson,
|
|
(AttendanceList).toString(): AttendanceList.fromJson,
|
|
(CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
|
|
(CheckSuccessEntity).toString(): CheckSuccessEntity.fromJson,
|
|
@@ -534,6 +569,15 @@ class JsonConvertClassCollection {
|
|
(LabourRequestSGCountList).toString(): LabourRequestSGCountList.fromJson,
|
|
(LabourRequestSGCountList).toString(): LabourRequestSGCountList.fromJson,
|
|
(LabourRequestWorkFlowEntity).toString(): LabourRequestWorkFlowEntity.fromJson,
|
|
(LabourRequestWorkFlowEntity).toString(): LabourRequestWorkFlowEntity.fromJson,
|
|
(LabourRequestWorkFlowRecords).toString(): LabourRequestWorkFlowRecords.fromJson,
|
|
(LabourRequestWorkFlowRecords).toString(): LabourRequestWorkFlowRecords.fromJson,
|
|
|
|
+ (ReviseIndexSGEntity).toString(): ReviseIndexSGEntity.fromJson,
|
|
|
|
+ (ReviseIndexSGStatusList).toString(): ReviseIndexSGStatusList.fromJson,
|
|
|
|
+ (ReviseListSGEntity).toString(): ReviseListSGEntity.fromJson,
|
|
|
|
+ (ReviseListSGRows).toString(): ReviseListSGRows.fromJson,
|
|
|
|
+ (ReviseLogSGEntity).toString(): ReviseLogSGEntity.fromJson,
|
|
|
|
+ (ReviseLogSGRecords).toString(): ReviseLogSGRecords.fromJson,
|
|
|
|
+ (ReviseLogSGRecordsContent).toString(): ReviseLogSGRecordsContent.fromJson,
|
|
|
|
+ (ReviseLogSGRecordsContentReviseHours).toString(): ReviseLogSGRecordsContentReviseHours.fromJson,
|
|
|
|
+ (ReviseLogSGRecordsContentReviseMsg).toString(): ReviseLogSGRecordsContentReviseMsg.fromJson,
|
|
(StaffDetailEntity).toString(): StaffDetailEntity.fromJson,
|
|
(StaffDetailEntity).toString(): StaffDetailEntity.fromJson,
|
|
(StaffDetailSGEntity).toString(): StaffDetailSGEntity.fromJson,
|
|
(StaffDetailSGEntity).toString(): StaffDetailSGEntity.fromJson,
|
|
(StaffDetailSGReviews).toString(): StaffDetailSGReviews.fromJson,
|
|
(StaffDetailSGReviews).toString(): StaffDetailSGReviews.fromJson,
|