Commit 7210793a authored by Sai Srinivas's avatar Sai Srinivas
Browse files

17-09

parent 185e0896
...@@ -9,7 +9,7 @@ class AccountSuggestionResonse { ...@@ -9,7 +9,7 @@ class AccountSuggestionResonse {
if (json['account_list'] != null) { if (json['account_list'] != null) {
accountList = <AccountList>[]; accountList = <AccountList>[];
json['account_list'].forEach((v) { json['account_list'].forEach((v) {
accountList!.add(new AccountList.fromJson(v)); accountList!.add(AccountList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,12 +17,12 @@ class AccountSuggestionResonse { ...@@ -17,12 +17,12 @@ class AccountSuggestionResonse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.accountList != null) { if (accountList != null) {
data['account_list'] = this.accountList!.map((v) => v.toJson()).toList(); data['account_list'] = accountList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -39,9 +39,9 @@ class AccountList { ...@@ -39,9 +39,9 @@ class AccountList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['account_name'] = this.accountName; data['account_name'] = accountName;
data['account_id'] = this.accountId; data['account_id'] = accountId;
return data; return data;
} }
} }
...@@ -12,10 +12,10 @@ class AddContactResponse { ...@@ -12,10 +12,10 @@ class AddContactResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -12,45 +12,48 @@ class AttendanceHistory { ...@@ -12,45 +12,48 @@ class AttendanceHistory {
int? error; int? error;
int? sessionExists; int? sessionExists;
AttendanceHistory( AttendanceHistory({
{this.presentDays, this.presentDays,
this.absentDays, this.absentDays,
this.holidays, this.holidays,
this.latePenalties, this.latePenalties,
this.dateArray, this.dateArray,
this.latePenaltyArray, this.latePenaltyArray,
this.error, this.error,
this.sessionExists}); this.sessionExists,
});
AttendanceHistory.fromJson(Map<String, dynamic> json) { AttendanceHistory.fromJson(Map<String, dynamic> json) {
presentDays = json['present_days']; presentDays = json['present_days'];
absentDays = json['absent_days']; absentDays = json['absent_days'];
holidays = json['holidays']; holidays = json['holidays'];
latePenalties = json['late_penalties']; latePenalties = json['late_penalties'];
dateArray = json['date_array'] != null dateArray =
? new DateArray.fromJson(json['date_array']) json['date_array'] != null
: null; ? DateArray.fromJson(json['date_array'])
latePenaltyArray = json['late_penalty_array'] != null : null;
? new LatePenaltyArray.fromJson(json['late_penalty_array']) latePenaltyArray =
: null; json['late_penalty_array'] != null
? LatePenaltyArray.fromJson(json['late_penalty_array'])
: null;
error = json['error']; error = json['error'];
sessionExists = json['session_exists']; sessionExists = json['session_exists'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['present_days'] = this.presentDays; data['present_days'] = presentDays;
data['absent_days'] = this.absentDays; data['absent_days'] = absentDays;
data['holidays'] = this.holidays; data['holidays'] = holidays;
data['late_penalties'] = this.latePenalties; data['late_penalties'] = latePenalties;
if (this.dateArray != null) { if (dateArray != null) {
data['date_array'] = this.dateArray!.toJson(); data['date_array'] = dateArray!.toJson();
} }
if (this.latePenaltyArray != null) { if (latePenaltyArray != null) {
data['late_penalty_array'] = this.latePenaltyArray!.toJson(); data['late_penalty_array'] = latePenaltyArray!.toJson();
} }
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -88,38 +91,39 @@ class DateArray { ...@@ -88,38 +91,39 @@ class DateArray {
String? s20240224; String? s20240224;
String? s20240225; String? s20240225;
DateArray( DateArray({
{this.s20240126, this.s20240126,
this.s20240127, this.s20240127,
this.s20240128, this.s20240128,
this.s20240129, this.s20240129,
this.s20240130, this.s20240130,
this.s20240131, this.s20240131,
this.s20240201, this.s20240201,
this.s20240202, this.s20240202,
this.s20240203, this.s20240203,
this.s20240204, this.s20240204,
this.s20240205, this.s20240205,
this.s20240206, this.s20240206,
this.s20240207, this.s20240207,
this.s20240208, this.s20240208,
this.s20240209, this.s20240209,
this.s20240210, this.s20240210,
this.s20240211, this.s20240211,
this.s20240212, this.s20240212,
this.s20240213, this.s20240213,
this.s20240214, this.s20240214,
this.s20240215, this.s20240215,
this.s20240216, this.s20240216,
this.s20240217, this.s20240217,
this.s20240218, this.s20240218,
this.s20240219, this.s20240219,
this.s20240220, this.s20240220,
this.s20240221, this.s20240221,
this.s20240222, this.s20240222,
this.s20240223, this.s20240223,
this.s20240224, this.s20240224,
this.s20240225}); this.s20240225,
});
DateArray.fromJson(Map<String, dynamic> json) { DateArray.fromJson(Map<String, dynamic> json) {
s20240126 = json['2024-01-26']; s20240126 = json['2024-01-26'];
...@@ -156,38 +160,38 @@ class DateArray { ...@@ -156,38 +160,38 @@ class DateArray {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['2024-01-26'] = this.s20240126; data['2024-01-26'] = s20240126;
data['2024-01-27'] = this.s20240127; data['2024-01-27'] = s20240127;
data['2024-01-28'] = this.s20240128; data['2024-01-28'] = s20240128;
data['2024-01-29'] = this.s20240129; data['2024-01-29'] = s20240129;
data['2024-01-30'] = this.s20240130; data['2024-01-30'] = s20240130;
data['2024-01-31'] = this.s20240131; data['2024-01-31'] = s20240131;
data['2024-02-01'] = this.s20240201; data['2024-02-01'] = s20240201;
data['2024-02-02'] = this.s20240202; data['2024-02-02'] = s20240202;
data['2024-02-03'] = this.s20240203; data['2024-02-03'] = s20240203;
data['2024-02-04'] = this.s20240204; data['2024-02-04'] = s20240204;
data['2024-02-05'] = this.s20240205; data['2024-02-05'] = s20240205;
data['2024-02-06'] = this.s20240206; data['2024-02-06'] = s20240206;
data['2024-02-07'] = this.s20240207; data['2024-02-07'] = s20240207;
data['2024-02-08'] = this.s20240208; data['2024-02-08'] = s20240208;
data['2024-02-09'] = this.s20240209; data['2024-02-09'] = s20240209;
data['2024-02-10'] = this.s20240210; data['2024-02-10'] = s20240210;
data['2024-02-11'] = this.s20240211; data['2024-02-11'] = s20240211;
data['2024-02-12'] = this.s20240212; data['2024-02-12'] = s20240212;
data['2024-02-13'] = this.s20240213; data['2024-02-13'] = s20240213;
data['2024-02-14'] = this.s20240214; data['2024-02-14'] = s20240214;
data['2024-02-15'] = this.s20240215; data['2024-02-15'] = s20240215;
data['2024-02-16'] = this.s20240216; data['2024-02-16'] = s20240216;
data['2024-02-17'] = this.s20240217; data['2024-02-17'] = s20240217;
data['2024-02-18'] = this.s20240218; data['2024-02-18'] = s20240218;
data['2024-02-19'] = this.s20240219; data['2024-02-19'] = s20240219;
data['2024-02-20'] = this.s20240220; data['2024-02-20'] = s20240220;
data['2024-02-21'] = this.s20240221; data['2024-02-21'] = s20240221;
data['2024-02-22'] = this.s20240222; data['2024-02-22'] = s20240222;
data['2024-02-23'] = this.s20240223; data['2024-02-23'] = s20240223;
data['2024-02-24'] = this.s20240224; data['2024-02-24'] = s20240224;
data['2024-02-25'] = this.s20240225; data['2024-02-25'] = s20240225;
return data; return data;
} }
} }
...@@ -225,38 +229,39 @@ class LatePenaltyArray { ...@@ -225,38 +229,39 @@ class LatePenaltyArray {
int? i20240224; int? i20240224;
int? i20240225; int? i20240225;
LatePenaltyArray( LatePenaltyArray({
{this.i20240126, this.i20240126,
this.i20240127, this.i20240127,
this.i20240128, this.i20240128,
this.i20240129, this.i20240129,
this.i20240130, this.i20240130,
this.i20240131, this.i20240131,
this.i20240201, this.i20240201,
this.i20240202, this.i20240202,
this.i20240203, this.i20240203,
this.i20240204, this.i20240204,
this.i20240205, this.i20240205,
this.i20240206, this.i20240206,
this.i20240207, this.i20240207,
this.i20240208, this.i20240208,
this.i20240209, this.i20240209,
this.i20240210, this.i20240210,
this.i20240211, this.i20240211,
this.i20240212, this.i20240212,
this.i20240213, this.i20240213,
this.i20240214, this.i20240214,
this.i20240215, this.i20240215,
this.i20240216, this.i20240216,
this.i20240217, this.i20240217,
this.i20240218, this.i20240218,
this.i20240219, this.i20240219,
this.i20240220, this.i20240220,
this.i20240221, this.i20240221,
this.i20240222, this.i20240222,
this.i20240223, this.i20240223,
this.i20240224, this.i20240224,
this.i20240225}); this.i20240225,
});
LatePenaltyArray.fromJson(Map<String, dynamic> json) { LatePenaltyArray.fromJson(Map<String, dynamic> json) {
i20240126 = json['2024-01-26']; i20240126 = json['2024-01-26'];
...@@ -293,38 +298,38 @@ class LatePenaltyArray { ...@@ -293,38 +298,38 @@ class LatePenaltyArray {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['2024-01-26'] = this.i20240126; data['2024-01-26'] = i20240126;
data['2024-01-27'] = this.i20240127; data['2024-01-27'] = i20240127;
data['2024-01-28'] = this.i20240128; data['2024-01-28'] = i20240128;
data['2024-01-29'] = this.i20240129; data['2024-01-29'] = i20240129;
data['2024-01-30'] = this.i20240130; data['2024-01-30'] = i20240130;
data['2024-01-31'] = this.i20240131; data['2024-01-31'] = i20240131;
data['2024-02-01'] = this.i20240201; data['2024-02-01'] = i20240201;
data['2024-02-02'] = this.i20240202; data['2024-02-02'] = i20240202;
data['2024-02-03'] = this.i20240203; data['2024-02-03'] = i20240203;
data['2024-02-04'] = this.i20240204; data['2024-02-04'] = i20240204;
data['2024-02-05'] = this.i20240205; data['2024-02-05'] = i20240205;
data['2024-02-06'] = this.i20240206; data['2024-02-06'] = i20240206;
data['2024-02-07'] = this.i20240207; data['2024-02-07'] = i20240207;
data['2024-02-08'] = this.i20240208; data['2024-02-08'] = i20240208;
data['2024-02-09'] = this.i20240209; data['2024-02-09'] = i20240209;
data['2024-02-10'] = this.i20240210; data['2024-02-10'] = i20240210;
data['2024-02-11'] = this.i20240211; data['2024-02-11'] = i20240211;
data['2024-02-12'] = this.i20240212; data['2024-02-12'] = i20240212;
data['2024-02-13'] = this.i20240213; data['2024-02-13'] = i20240213;
data['2024-02-14'] = this.i20240214; data['2024-02-14'] = i20240214;
data['2024-02-15'] = this.i20240215; data['2024-02-15'] = i20240215;
data['2024-02-16'] = this.i20240216; data['2024-02-16'] = i20240216;
data['2024-02-17'] = this.i20240217; data['2024-02-17'] = i20240217;
data['2024-02-18'] = this.i20240218; data['2024-02-18'] = i20240218;
data['2024-02-19'] = this.i20240219; data['2024-02-19'] = i20240219;
data['2024-02-20'] = this.i20240220; data['2024-02-20'] = i20240220;
data['2024-02-21'] = this.i20240221; data['2024-02-21'] = i20240221;
data['2024-02-22'] = this.i20240222; data['2024-02-22'] = i20240222;
data['2024-02-23'] = this.i20240223; data['2024-02-23'] = i20240223;
data['2024-02-24'] = this.i20240224; data['2024-02-24'] = i20240224;
data['2024-02-25'] = this.i20240225; data['2024-02-25'] = i20240225;
return data; return data;
} }
} }
...@@ -10,19 +10,19 @@ class AttendanceDashboard { ...@@ -10,19 +10,19 @@ class AttendanceDashboard {
if (json['att_history'] != null) { if (json['att_history'] != null) {
attHistory = <AttHistory>[]; attHistory = <AttHistory>[];
json['att_history'].forEach((v) { json['att_history'].forEach((v) {
attHistory!.add(new AttHistory.fromJson(v)); attHistory!.add(AttHistory.fromJson(v));
}); });
} }
sessionExists = json['session_exists']; sessionExists = json['session_exists'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['att_status'] = this.attStatus; data['att_status'] = attStatus;
if (this.attHistory != null) { if (attHistory != null) {
data['att_history'] = this.attHistory!.map((v) => v.toJson()).toList(); data['att_history'] = attHistory!.map((v) => v.toJson()).toList();
} }
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -41,10 +41,10 @@ class AttHistory { ...@@ -41,10 +41,10 @@ class AttHistory {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['date'] = this.date; data['date'] = date;
data['check_in_time'] = this.checkInTime; data['check_in_time'] = checkInTime;
data['check_out_time'] = this.checkOutTime; data['check_out_time'] = checkOutTime;
return data; return data;
} }
} }
\ No newline at end of file
...@@ -10,9 +10,9 @@ class CheckInResponse { ...@@ -10,9 +10,9 @@ class CheckInResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
\ No newline at end of file
...@@ -10,9 +10,9 @@ class CheckOutResponse { ...@@ -10,9 +10,9 @@ class CheckOutResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
\ No newline at end of file
...@@ -10,9 +10,9 @@ class ComplaintRegidterResponse { ...@@ -10,9 +10,9 @@ class ComplaintRegidterResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -5,30 +5,31 @@ class ComplaintsSelectionResponse { ...@@ -5,30 +5,31 @@ class ComplaintsSelectionResponse {
int? error; int? error;
int? sessionExists; int? sessionExists;
ComplaintsSelectionResponse( ComplaintsSelectionResponse({
{this.serviceComptType, this.serviceComptType,
this.serviceComptCat, this.serviceComptCat,
this.serviceComptDesc, this.serviceComptDesc,
this.error, this.error,
this.sessionExists}); this.sessionExists,
});
ComplaintsSelectionResponse.fromJson(Map<String, dynamic> json) { ComplaintsSelectionResponse.fromJson(Map<String, dynamic> json) {
if (json['service_compt_type'] != null) { if (json['service_compt_type'] != null) {
serviceComptType = <ServiceComptType>[]; serviceComptType = <ServiceComptType>[];
json['service_compt_type'].forEach((v) { json['service_compt_type'].forEach((v) {
serviceComptType!.add(new ServiceComptType.fromJson(v)); serviceComptType!.add(ServiceComptType.fromJson(v));
}); });
} }
if (json['service_compt_cat'] != null) { if (json['service_compt_cat'] != null) {
serviceComptCat = <ServiceComptCat>[]; serviceComptCat = <ServiceComptCat>[];
json['service_compt_cat'].forEach((v) { json['service_compt_cat'].forEach((v) {
serviceComptCat!.add(new ServiceComptCat.fromJson(v)); serviceComptCat!.add(ServiceComptCat.fromJson(v));
}); });
} }
if (json['service_compt_desc'] != null) { if (json['service_compt_desc'] != null) {
serviceComptDesc = <ServiceComptDesc>[]; serviceComptDesc = <ServiceComptDesc>[];
json['service_compt_desc'].forEach((v) { json['service_compt_desc'].forEach((v) {
serviceComptDesc!.add(new ServiceComptDesc.fromJson(v)); serviceComptDesc!.add(ServiceComptDesc.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -36,21 +37,21 @@ class ComplaintsSelectionResponse { ...@@ -36,21 +37,21 @@ class ComplaintsSelectionResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.serviceComptType != null) { if (serviceComptType != null) {
data['service_compt_type'] = data['service_compt_type'] =
this.serviceComptType!.map((v) => v.toJson()).toList(); serviceComptType!.map((v) => v.toJson()).toList();
} }
if (this.serviceComptCat != null) { if (serviceComptCat != null) {
data['service_compt_cat'] = data['service_compt_cat'] =
this.serviceComptCat!.map((v) => v.toJson()).toList(); serviceComptCat!.map((v) => v.toJson()).toList();
} }
if (this.serviceComptDesc != null) { if (serviceComptDesc != null) {
data['service_compt_desc'] = data['service_compt_desc'] =
this.serviceComptDesc!.map((v) => v.toJson()).toList(); serviceComptDesc!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -67,12 +68,13 @@ class ServiceComptType { ...@@ -67,12 +68,13 @@ class ServiceComptType {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
class ServiceComptCat { class ServiceComptCat {
String? id; String? id;
String? name; String? name;
...@@ -85,12 +87,13 @@ class ServiceComptCat { ...@@ -85,12 +87,13 @@ class ServiceComptCat {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
class ServiceComptDesc { class ServiceComptDesc {
String? id; String? id;
String? name; String? name;
...@@ -103,9 +106,9 @@ class ServiceComptDesc { ...@@ -103,9 +106,9 @@ class ServiceComptDesc {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
\ No newline at end of file
...@@ -4,11 +4,12 @@ class DashboardResponse { ...@@ -4,11 +4,12 @@ class DashboardResponse {
String? notificationsCount; String? notificationsCount;
int? sessionExists; int? sessionExists;
DashboardResponse( DashboardResponse({
{this.attStatus, this.attStatus,
this.appRequestAutostart, this.appRequestAutostart,
this.notificationsCount, this.notificationsCount,
this.sessionExists}); this.sessionExists,
});
DashboardResponse.fromJson(Map<String, dynamic> json) { DashboardResponse.fromJson(Map<String, dynamic> json) {
attStatus = json['att_status']; attStatus = json['att_status'];
...@@ -18,11 +19,11 @@ class DashboardResponse { ...@@ -18,11 +19,11 @@ class DashboardResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['att_status'] = this.attStatus; data['att_status'] = attStatus;
data['app_request_autostart'] = this.appRequestAutostart; data['app_request_autostart'] = appRequestAutostart;
data['notifications_count'] = this.notificationsCount; data['notifications_count'] = notificationsCount;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -3,18 +3,19 @@ class AttendanceDaywiseResponse { ...@@ -3,18 +3,19 @@ class AttendanceDaywiseResponse {
String? intime; String? intime;
String? outtime; String? outtime;
String? inlocation; String? inlocation;
dynamic? outlocation; dynamic outlocation;
String? latePenalties; String? latePenalties;
int? sessionExists; int? sessionExists;
AttendanceDaywiseResponse( AttendanceDaywiseResponse({
{this.date, this.date,
this.intime, this.intime,
this.outtime, this.outtime,
this.inlocation, this.inlocation,
this.outlocation, this.outlocation,
this.latePenalties, this.latePenalties,
this.sessionExists}); this.sessionExists,
});
AttendanceDaywiseResponse.fromJson(Map<String, dynamic> json) { AttendanceDaywiseResponse.fromJson(Map<String, dynamic> json) {
date = json['date']; date = json['date'];
...@@ -27,14 +28,14 @@ class AttendanceDaywiseResponse { ...@@ -27,14 +28,14 @@ class AttendanceDaywiseResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['date'] = this.date; data['date'] = date;
data['intime'] = this.intime; data['intime'] = intime;
data['outtime'] = this.outtime; data['outtime'] = outtime;
data['inlocation'] = this.inlocation; data['inlocation'] = inlocation;
data['outlocation'] = this.outlocation; data['outlocation'] = outlocation;
data['late_penalties'] = this.latePenalties; data['late_penalties'] = latePenalties;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ class FollowupListResponse { ...@@ -9,7 +9,7 @@ class FollowupListResponse {
if (json['list'] != null) { if (json['list'] != null) {
list = <Followuplist>[]; list = <Followuplist>[];
json['list'].forEach((v) { json['list'].forEach((v) {
list!.add(new Followuplist.fromJson(v)); list!.add(Followuplist.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,12 +17,12 @@ class FollowupListResponse { ...@@ -17,12 +17,12 @@ class FollowupListResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.list != null) { if (list != null) {
data['list'] = this.list!.map((v) => v.toJson()).toList(); data['list'] = list!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -42,20 +42,21 @@ class Followuplist { ...@@ -42,20 +42,21 @@ class Followuplist {
String? time; String? time;
String? ename; String? ename;
Followuplist( Followuplist({
{this.id, this.id,
this.empId, this.empId,
this.compId, this.compId,
this.inTime, this.inTime,
this.outTime, this.outTime,
this.feedback, this.feedback,
this.type, this.type,
this.date, this.date,
this.fsrNo, this.fsrNo,
this.fsrExt, this.fsrExt,
this.runningHrs, this.runningHrs,
this.time, this.time,
this.ename}); this.ename,
});
Followuplist.fromJson(Map<String, dynamic> json) { Followuplist.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -74,20 +75,20 @@ class Followuplist { ...@@ -74,20 +75,20 @@ class Followuplist {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['emp_id'] = this.empId; data['emp_id'] = empId;
data['comp_id'] = this.compId; data['comp_id'] = compId;
data['in_time'] = this.inTime; data['in_time'] = inTime;
data['out_time'] = this.outTime; data['out_time'] = outTime;
data['feedback'] = this.feedback; data['feedback'] = feedback;
data['type'] = this.type; data['type'] = type;
data['date'] = this.date; data['date'] = date;
data['fsr_no'] = this.fsrNo; data['fsr_no'] = fsrNo;
data['fsr_ext'] = this.fsrExt; data['fsr_ext'] = fsrExt;
data['running_hrs'] = this.runningHrs; data['running_hrs'] = runningHrs;
data['time'] = this.time; data['time'] = time;
data['ename'] = this.ename; data['ename'] = ename;
return data; return data;
} }
} }
...@@ -3,24 +3,26 @@ class Inventory_Part_details_response { ...@@ -3,24 +3,26 @@ class Inventory_Part_details_response {
PartData? partData; PartData? partData;
int? sessionExists; int? sessionExists;
Inventory_Part_details_response( Inventory_Part_details_response({
{this.error, this.partData, this.sessionExists}); this.error,
this.partData,
this.sessionExists,
});
Inventory_Part_details_response.fromJson(Map<String, dynamic> json) { Inventory_Part_details_response.fromJson(Map<String, dynamic> json) {
error = json['error']; error = json['error'];
partData = json['part_data'] != null partData =
? new PartData.fromJson(json['part_data']) json['part_data'] != null ? PartData.fromJson(json['part_data']) : null;
: null;
sessionExists = json['session_exists']; sessionExists = json['session_exists'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
if (this.partData != null) { if (partData != null) {
data['part_data'] = this.partData!.toJson(); data['part_data'] = partData!.toJson();
} }
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -55,35 +57,36 @@ class PartData { ...@@ -55,35 +57,36 @@ class PartData {
int? remainingQuantity; int? remainingQuantity;
String? branchName; String? branchName;
PartData( PartData({
{this.id, this.id,
this.productCode, this.productCode,
this.project, this.project,
this.subGroup, this.subGroup,
this.vendor1, this.vendor1,
this.vendor2, this.vendor2,
this.vendorCode, this.vendorCode,
this.prodName, this.prodName,
this.brand, this.brand,
this.imageDirFilePath, this.imageDirFilePath,
this.imageViewFileName, this.imageViewFileName,
this.prodDesc, this.prodDesc,
this.hsnCode, this.hsnCode,
this.units, this.units,
this.unitsId, this.unitsId,
this.worksMsl, this.worksMsl,
this.refType, this.refType,
this.refId, this.refId,
this.price, this.price,
this.type, this.type,
this.productionProcessId, this.productionProcessId,
this.createdBy, this.createdBy,
this.datetime, this.datetime,
this.isExists, this.isExists,
this.updatedDatetime, this.updatedDatetime,
this.msl, this.msl,
this.remainingQuantity, this.remainingQuantity,
this.branchName}); this.branchName,
});
PartData.fromJson(Map<String, dynamic> json) { PartData.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -117,35 +120,35 @@ class PartData { ...@@ -117,35 +120,35 @@ class PartData {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['product_code'] = this.productCode; data['product_code'] = productCode;
data['project'] = this.project; data['project'] = project;
data['sub_group'] = this.subGroup; data['sub_group'] = subGroup;
data['vendor_1'] = this.vendor1; data['vendor_1'] = vendor1;
data['vendor_2'] = this.vendor2; data['vendor_2'] = vendor2;
data['vendor_code'] = this.vendorCode; data['vendor_code'] = vendorCode;
data['prod_name'] = this.prodName; data['prod_name'] = prodName;
data['brand'] = this.brand; data['brand'] = brand;
data['image_dir_file_path'] = this.imageDirFilePath; data['image_dir_file_path'] = imageDirFilePath;
data['image_view_file_name'] = this.imageViewFileName; data['image_view_file_name'] = imageViewFileName;
data['prod_desc'] = this.prodDesc; data['prod_desc'] = prodDesc;
data['hsn_code'] = this.hsnCode; data['hsn_code'] = hsnCode;
data['units'] = this.units; data['units'] = units;
data['units_id'] = this.unitsId; data['units_id'] = unitsId;
data['works_msl'] = this.worksMsl; data['works_msl'] = worksMsl;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['price'] = this.price; data['price'] = price;
data['type'] = this.type; data['type'] = type;
data['production_process_id'] = this.productionProcessId; data['production_process_id'] = productionProcessId;
data['created_by'] = this.createdBy; data['created_by'] = createdBy;
data['datetime'] = this.datetime; data['datetime'] = datetime;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['msl'] = this.msl; data['msl'] = msl;
data['remaining_quantity'] = this.remainingQuantity; data['remaining_quantity'] = remainingQuantity;
data['branch_name'] = this.branchName; data['branch_name'] = branchName;
return data; return data;
} }
} }
...@@ -12,10 +12,10 @@ class LoginQRResponse { ...@@ -12,10 +12,10 @@ class LoginQRResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -10,9 +10,9 @@ class LogoutResponse { ...@@ -10,9 +10,9 @@ class LogoutResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
class NearbyGeneratorsResponse { class NearbyGeneratorsResponse {
List<Nearbygenerators>? list; List<Nearbygenerators>? list;
int? error; int? error;
...@@ -11,7 +9,7 @@ class NearbyGeneratorsResponse { ...@@ -11,7 +9,7 @@ class NearbyGeneratorsResponse {
if (json['list'] != null) { if (json['list'] != null) {
list = <Nearbygenerators>[]; list = <Nearbygenerators>[];
json['list'].forEach((v) { json['list'].forEach((v) {
list!.add(new Nearbygenerators.fromJson(v)); list!.add(Nearbygenerators.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -19,12 +17,12 @@ class NearbyGeneratorsResponse { ...@@ -19,12 +17,12 @@ class NearbyGeneratorsResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.list != null) { if (list != null) {
data['list'] = this.list!.map((v) => v.toJson()).toList(); data['list'] = list!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -36,12 +34,13 @@ class Nearbygenerators { ...@@ -36,12 +34,13 @@ class Nearbygenerators {
String? accName; String? accName;
String? distance; String? distance;
Nearbygenerators( Nearbygenerators({
{this.generatorId, this.generatorId,
this.loc, this.loc,
this.productName, this.productName,
this.accName, this.accName,
this.distance}); this.distance,
});
Nearbygenerators.fromJson(Map<String, dynamic> json) { Nearbygenerators.fromJson(Map<String, dynamic> json) {
generatorId = json['generator_id']; generatorId = json['generator_id'];
...@@ -52,12 +51,12 @@ class Nearbygenerators { ...@@ -52,12 +51,12 @@ class Nearbygenerators {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['generator_id'] = this.generatorId; data['generator_id'] = generatorId;
data['loc'] = this.loc; data['loc'] = loc;
data['product_name'] = this.productName; data['product_name'] = productName;
data['acc_name'] = this.accName; data['acc_name'] = accName;
data['distance'] = this.distance; data['distance'] = distance;
return data; return data;
} }
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ class PaymentCollectionResponse { ...@@ -9,7 +9,7 @@ class PaymentCollectionResponse {
if (json['list'] != null) { if (json['list'] != null) {
list = <PC_List>[]; list = <PC_List>[];
json['list'].forEach((v) { json['list'].forEach((v) {
list!.add(new PC_List.fromJson(v)); list!.add(PC_List.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,12 +17,12 @@ class PaymentCollectionResponse { ...@@ -17,12 +17,12 @@ class PaymentCollectionResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.list != null) { if (list != null) {
data['list'] = this.list!.map((v) => v.toJson()).toList(); data['list'] = list!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -36,14 +36,15 @@ class PC_List { ...@@ -36,14 +36,15 @@ class PC_List {
String? paymentProofViewFileName; String? paymentProofViewFileName;
String? approvalStatus; String? approvalStatus;
PC_List( PC_List({
{this.accountName, this.accountName,
this.amount, this.amount,
this.paymentMode, this.paymentMode,
this.paymentRefNo, this.paymentRefNo,
this.paymentProofFilePath, this.paymentProofFilePath,
this.paymentProofViewFileName, this.paymentProofViewFileName,
this.approvalStatus}); this.approvalStatus,
});
PC_List.fromJson(Map<String, dynamic> json) { PC_List.fromJson(Map<String, dynamic> json) {
accountName = json['account_name']; accountName = json['account_name'];
...@@ -56,14 +57,14 @@ class PC_List { ...@@ -56,14 +57,14 @@ class PC_List {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['account_name'] = this.accountName; data['account_name'] = accountName;
data['amount'] = this.amount; data['amount'] = amount;
data['payment_mode'] = this.paymentMode; data['payment_mode'] = paymentMode;
data['payment_ref_no'] = this.paymentRefNo; data['payment_ref_no'] = paymentRefNo;
data['payment_proof_file_path'] = this.paymentProofFilePath; data['payment_proof_file_path'] = paymentProofFilePath;
data['payment_proof_view_file_name'] = this.paymentProofViewFileName; data['payment_proof_view_file_name'] = paymentProofViewFileName;
data['approval_status'] = this.approvalStatus; data['approval_status'] = approvalStatus;
return data; return data;
} }
} }
...@@ -3,8 +3,11 @@ class PaymentCollectionValidateOTPResponse { ...@@ -3,8 +3,11 @@ class PaymentCollectionValidateOTPResponse {
String? message; String? message;
int? sessionExists; int? sessionExists;
PaymentCollectionValidateOTPResponse( PaymentCollectionValidateOTPResponse({
{this.error, this.message, this.sessionExists}); this.error,
this.message,
this.sessionExists,
});
PaymentCollectionValidateOTPResponse.fromJson(Map<String, dynamic> json) { PaymentCollectionValidateOTPResponse.fromJson(Map<String, dynamic> json) {
error = json['error']; error = json['error'];
...@@ -13,10 +16,10 @@ class PaymentCollectionValidateOTPResponse { ...@@ -13,10 +16,10 @@ class PaymentCollectionValidateOTPResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -4,17 +4,20 @@ class PaymentCollectionWalletResponse { ...@@ -4,17 +4,20 @@ class PaymentCollectionWalletResponse {
int? error; int? error;
int? sessionExists; int? sessionExists;
PaymentCollectionWalletResponse( PaymentCollectionWalletResponse({
{this.totalDet, this.historyList, this.error, this.sessionExists}); this.totalDet,
this.historyList,
this.error,
this.sessionExists,
});
PaymentCollectionWalletResponse.fromJson(Map<String, dynamic> json) { PaymentCollectionWalletResponse.fromJson(Map<String, dynamic> json) {
totalDet = json['total_det'] != null totalDet =
? new TotalDet.fromJson(json['total_det']) json['total_det'] != null ? TotalDet.fromJson(json['total_det']) : null;
: null;
if (json['history_list'] != null) { if (json['history_list'] != null) {
historyList = <HistoryList>[]; historyList = <HistoryList>[];
json['history_list'].forEach((v) { json['history_list'].forEach((v) {
historyList!.add(new HistoryList.fromJson(v)); historyList!.add(HistoryList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -22,15 +25,15 @@ class PaymentCollectionWalletResponse { ...@@ -22,15 +25,15 @@ class PaymentCollectionWalletResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.totalDet != null) { if (totalDet != null) {
data['total_det'] = this.totalDet!.toJson(); data['total_det'] = totalDet!.toJson();
} }
if (this.historyList != null) { if (historyList != null) {
data['history_list'] = this.historyList!.map((v) => v.toJson()).toList(); data['history_list'] = historyList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -49,10 +52,10 @@ class TotalDet { ...@@ -49,10 +52,10 @@ class TotalDet {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['credit_amount'] = this.creditAmount; data['credit_amount'] = creditAmount;
data['debit_amount'] = this.debitAmount; data['debit_amount'] = debitAmount;
data['balance_amount'] = this.balanceAmount; data['balance_amount'] = balanceAmount;
return data; return data;
} }
} }
...@@ -64,12 +67,13 @@ class HistoryList { ...@@ -64,12 +67,13 @@ class HistoryList {
String? amount; String? amount;
String? datetime; String? datetime;
HistoryList( HistoryList({
{this.id, this.id,
this.transactionType, this.transactionType,
this.description, this.description,
this.amount, this.amount,
this.datetime}); this.datetime,
});
HistoryList.fromJson(Map<String, dynamic> json) { HistoryList.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -80,12 +84,12 @@ class HistoryList { ...@@ -80,12 +84,12 @@ class HistoryList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['transaction_type'] = this.transactionType; data['transaction_type'] = transactionType;
data['description'] = this.description; data['description'] = description;
data['amount'] = this.amount; data['amount'] = amount;
data['datetime'] = this.datetime; data['datetime'] = datetime;
return data; return data;
} }
} }
class ProfileResponse { class ProfileResponse {
String? totpSecret; String? totpSecret;
String? empId; String? empId;
...@@ -11,18 +10,18 @@ class ProfileResponse { ...@@ -11,18 +10,18 @@ class ProfileResponse {
String? profilePic; String? profilePic;
int? sessionExists; int? sessionExists;
ProfileResponse({
ProfileResponse( this.totpSecret,
{this.totpSecret, this.empId,
this.empId, this.empName,
this.empName, this.emailId,
this.emailId, this.branchName,
this.branchName, this.mobileNo,
this.mobileNo, this.designation,
this.designation, this.company,
this.company, this.profilePic,
this.profilePic, this.sessionExists,
this.sessionExists}); });
ProfileResponse.fromJson(Map<String, dynamic> json) { ProfileResponse.fromJson(Map<String, dynamic> json) {
totpSecret = json['totp_secret']; totpSecret = json['totp_secret'];
...@@ -38,17 +37,17 @@ class ProfileResponse { ...@@ -38,17 +37,17 @@ class ProfileResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['totp_secret'] = this.totpSecret; data['totp_secret'] = totpSecret;
data['emp_id'] = this.empId; data['emp_id'] = empId;
data['emp_name'] = this.empName; data['emp_name'] = empName;
data['email_id'] = this.emailId; data['email_id'] = emailId;
data['branch_name'] = this.branchName; data['branch_name'] = branchName;
data['mobile_no'] = this.mobileNo; data['mobile_no'] = mobileNo;
data['designation'] = this.designation; data['designation'] = designation;
data['company'] = this.company; data['company'] = company;
data['profile_pic'] = this.profilePic; data['profile_pic'] = profilePic;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -5,16 +5,16 @@ class QRResponse { ...@@ -5,16 +5,16 @@ class QRResponse {
QRResponse({this.data, this.type}); QRResponse({this.data, this.type});
QRResponse.fromJson(Map<String, dynamic> json) { QRResponse.fromJson(Map<String, dynamic> json) {
data = json['data'] != null ? new Data.fromJson(json['data']) : null; data = json['data'] != null ? Data.fromJson(json['data']) : null;
type = json['type']; type = json['type'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.data != null) { if (this.data != null) {
data['data'] = this.data!.toJson(); data['data'] = this.data!.toJson();
} }
data['type'] = this.type; data['type'] = type;
return data; return data;
} }
} }
...@@ -29,8 +29,8 @@ class Data { ...@@ -29,8 +29,8 @@ class Data {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['token'] = this.token; data['token'] = token;
return data; return data;
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment