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

17-09

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