Commit b76cf1af authored by Sai Srinivas's avatar Sai Srinivas
Browse files

06-05-2025 By Sai Srinivas

First Commit
LoginScreen.dart
HomeScreen.dart
WebERPScreen.dart
WebWhizzdomScreen.dart
parent aaf72461
class ComplaintsSelectionResponse {
List<ServiceComptType>? serviceComptType;
List<ServiceComptCat>? serviceComptCat;
List<ServiceComptDesc>? serviceComptDesc;
int? error;
int? 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));
});
}
if (json['service_compt_cat'] != null) {
serviceComptCat = <ServiceComptCat>[];
json['service_compt_cat'].forEach((v) {
serviceComptCat!.add(new ServiceComptCat.fromJson(v));
});
}
if (json['service_compt_desc'] != null) {
serviceComptDesc = <ServiceComptDesc>[];
json['service_compt_desc'].forEach((v) {
serviceComptDesc!.add(new ServiceComptDesc.fromJson(v));
});
}
error = json['error'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.serviceComptType != null) {
data['service_compt_type'] =
this.serviceComptType!.map((v) => v.toJson()).toList();
}
if (this.serviceComptCat != null) {
data['service_compt_cat'] =
this.serviceComptCat!.map((v) => v.toJson()).toList();
}
if (this.serviceComptDesc != null) {
data['service_compt_desc'] =
this.serviceComptDesc!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
class ServiceComptType {
String? id;
String? name;
ServiceComptType({this.id, this.name});
ServiceComptType.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
return data;
}
}
class ServiceComptCat {
String? id;
String? name;
ServiceComptCat({this.id, this.name});
ServiceComptCat.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
return data;
}
}
class ServiceComptDesc {
String? id;
String? name;
ServiceComptDesc({this.id, this.name});
ServiceComptDesc.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
return data;
}
}
\ No newline at end of file
class DashboardResponse {
int? attStatus;
String? appRequestAutostart;
String? notificationsCount;
int? sessionExists;
DashboardResponse(
{this.attStatus,
this.appRequestAutostart,
this.notificationsCount,
this.sessionExists});
DashboardResponse.fromJson(Map<String, dynamic> json) {
attStatus = json['att_status'];
appRequestAutostart = json['app_request_autostart'];
notificationsCount = json['notifications_count'];
sessionExists = json['session_exists'];
}
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;
return data;
}
}
class AttendanceDaywiseResponse {
String? date;
String? intime;
String? outtime;
String? inlocation;
dynamic? outlocation;
String? latePenalties;
int? 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'];
intime = json['intime'];
outtime = json['outtime'];
inlocation = json['inlocation'];
outlocation = json['outlocation'];
latePenalties = json['late_penalties'];
sessionExists = json['session_exists'];
}
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;
return data;
}
}
\ No newline at end of file
class FollowupListResponse {
List<Followuplist>? list;
int? error;
int? sessionExists;
FollowupListResponse({this.list, this.error, this.sessionExists});
FollowupListResponse.fromJson(Map<String, dynamic> json) {
if (json['list'] != null) {
list = <Followuplist>[];
json['list'].forEach((v) {
list!.add(new Followuplist.fromJson(v));
});
}
error = json['error'];
sessionExists = json['session_exists'];
}
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();
}
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
class Followuplist {
String? id;
String? empId;
String? compId;
String? inTime;
String? outTime;
String? feedback;
String? type;
String? date;
String? fsrNo;
String? fsrExt;
String? runningHrs;
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.fromJson(Map<String, dynamic> json) {
id = json['id'];
empId = json['emp_id'];
compId = json['comp_id'];
inTime = json['in_time'];
outTime = json['out_time'];
feedback = json['feedback'];
type = json['type'];
date = json['date'];
fsrNo = json['fsr_no'];
fsrExt = json['fsr_ext'];
runningHrs = json['running_hrs'];
time = json['time'];
ename = json['ename'];
}
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;
return data;
}
}
class Inventory_Part_details_response {
int? error;
PartData? partData;
int? 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;
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();
}
data['session_exists'] = this.sessionExists;
return data;
}
}
class PartData {
String? id;
String? productCode;
String? project;
String? subGroup;
String? vendor1;
String? vendor2;
String? vendorCode;
String? prodName;
String? brand;
String? imageDirFilePath;
String? imageViewFileName;
String? prodDesc;
String? hsnCode;
String? units;
String? unitsId;
String? worksMsl;
String? refType;
String? refId;
String? price;
String? type;
String? productionProcessId;
String? createdBy;
String? datetime;
String? isExists;
String? updatedDatetime;
String? msl;
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.fromJson(Map<String, dynamic> json) {
id = json['id'];
productCode = json['product_code'];
project = json['project'];
subGroup = json['sub_group'];
vendor1 = json['vendor_1'];
vendor2 = json['vendor_2'];
vendorCode = json['vendor_code'];
prodName = json['prod_name'];
brand = json['brand'];
imageDirFilePath = json['image_dir_file_path'];
imageViewFileName = json['image_view_file_name'];
prodDesc = json['prod_desc'];
hsnCode = json['hsn_code'];
units = json['units'];
unitsId = json['units_id'];
worksMsl = json['works_msl'];
refType = json['ref_type'];
refId = json['ref_id'];
price = json['price'];
type = json['type'];
productionProcessId = json['production_process_id'];
createdBy = json['created_by'];
datetime = json['datetime'];
isExists = json['is_exists'];
updatedDatetime = json['updated_datetime'];
msl = json['msl'];
remainingQuantity = json['remaining_quantity'];
branchName = json['branch_name'];
}
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;
return data;
}
}
class LoginQRResponse {
int? error;
String? message;
int? sessionExists;
LoginQRResponse({this.error, this.message, this.sessionExists});
LoginQRResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
message = json['message'];
sessionExists = json['session_exists'];
}
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;
return data;
}
}
class LogoutResponse {
int? error;
int? sessionExists;
LogoutResponse({this.error, this.sessionExists});
LogoutResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
class NearbyGeneratorsResponse {
List<Nearbygenerators>? list;
int? error;
int? sessionExists;
NearbyGeneratorsResponse({this.list, this.error, this.sessionExists});
NearbyGeneratorsResponse.fromJson(Map<String, dynamic> json) {
if (json['list'] != null) {
list = <Nearbygenerators>[];
json['list'].forEach((v) {
list!.add(new Nearbygenerators.fromJson(v));
});
}
error = json['error'];
sessionExists = json['session_exists'];
}
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();
}
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
class Nearbygenerators {
String? generatorId;
String? loc;
String? productName;
String? accName;
String? distance;
Nearbygenerators(
{this.generatorId,
this.loc,
this.productName,
this.accName,
this.distance});
Nearbygenerators.fromJson(Map<String, dynamic> json) {
generatorId = json['generator_id'];
loc = json['loc'];
productName = json['product_name'];
accName = json['acc_name'];
distance = json['distance'];
}
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;
return data;
}
}
\ No newline at end of file
class PaymentCollectionResponse {
List<PC_List>? list;
int? error;
int? sessionExists;
PaymentCollectionResponse({this.list, this.error, this.sessionExists});
PaymentCollectionResponse.fromJson(Map<String, dynamic> json) {
if (json['list'] != null) {
list = <PC_List>[];
json['list'].forEach((v) {
list!.add(new PC_List.fromJson(v));
});
}
error = json['error'];
sessionExists = json['session_exists'];
}
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();
}
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
class PC_List {
String? accountName;
String? amount;
String? paymentMode;
String? paymentRefNo;
String? paymentProofFilePath;
String? paymentProofViewFileName;
String? 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'];
amount = json['amount'];
paymentMode = json['payment_mode'];
paymentRefNo = json['payment_ref_no'];
paymentProofFilePath = json['payment_proof_file_path'];
paymentProofViewFileName = json['payment_proof_view_file_name'];
approvalStatus = json['approval_status'];
}
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;
return data;
}
}
class PaymentCollectionValidateOTPResponse {
int? error;
String? message;
int? sessionExists;
PaymentCollectionValidateOTPResponse(
{this.error, this.message, this.sessionExists});
PaymentCollectionValidateOTPResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
message = json['message'];
sessionExists = json['session_exists'];
}
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;
return data;
}
}
class PaymentCollectionWalletResponse {
TotalDet? totalDet;
List<HistoryList>? historyList;
int? error;
int? 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;
if (json['history_list'] != null) {
historyList = <HistoryList>[];
json['history_list'].forEach((v) {
historyList!.add(new HistoryList.fromJson(v));
});
}
error = json['error'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.totalDet != null) {
data['total_det'] = this.totalDet!.toJson();
}
if (this.historyList != null) {
data['history_list'] = this.historyList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
class TotalDet {
String? creditAmount;
String? debitAmount;
String? balanceAmount;
TotalDet({this.creditAmount, this.debitAmount, this.balanceAmount});
TotalDet.fromJson(Map<String, dynamic> json) {
creditAmount = json['credit_amount'];
debitAmount = json['debit_amount'];
balanceAmount = json['balance_amount'];
}
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;
return data;
}
}
class HistoryList {
String? id;
String? transactionType;
String? description;
String? amount;
String? datetime;
HistoryList(
{this.id,
this.transactionType,
this.description,
this.amount,
this.datetime});
HistoryList.fromJson(Map<String, dynamic> json) {
id = json['id'];
transactionType = json['transaction_type'];
description = json['description'];
amount = json['amount'];
datetime = json['datetime'];
}
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;
return data;
}
}
class ProfileResponse {
String? totpSecret;
String? empId;
String? empName;
String? emailId;
String? branchName;
String? mobileNo;
String? designation;
String? company;
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.fromJson(Map<String, dynamic> json) {
totpSecret = json['totp_secret'];
empId = json['emp_id'];
empName = json['emp_name'];
emailId = json['email_id'];
branchName = json['branch_name'];
mobileNo = json['mobile_no'];
designation = json['designation'];
company = json['company'];
profilePic = json['profile_pic'];
sessionExists = json['session_exists'];
}
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;
return data;
}
}
class QRResponse {
Data? data;
String? type;
QRResponse({this.data, this.type});
QRResponse.fromJson(Map<String, dynamic> json) {
data = json['data'] != null ? new Data.fromJson(json['data']) : null;
type = json['type'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.data != null) {
data['data'] = this.data!.toJson();
}
data['type'] = this.type;
return data;
}
}
class Data {
String? token;
Data({this.token});
Data.fromJson(Map<String, dynamic> json) {
token = json['token'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['token'] = this.token;
return data;
}
}
class SessionResponse {
int? updatePasswordRequired;
int? sessionExists;
SessionResponse({this.updatePasswordRequired, this.sessionExists});
SessionResponse.fromJson(Map<String, dynamic> json) {
updatePasswordRequired = json['update_password_required'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['update_password_required'] = this.updatePasswordRequired;
data['session_exists'] = this.sessionExists;
return data;
}
}
class StatusResponse {
int? error;
String? ccsUsername;
String? ccsPassword;
String? ccsPbxDomain;
String? ccsPbxSipProtocol;
String? sessionId;
String? userId;
String? name;
String? emailId;
List<String>? permissions;
int? attStatus;
String? appRequestAutostart;
String? notificationsCount;
int? sessionExists;
StatusResponse(
{this.error,
this.ccsUsername,
this.ccsPassword,
this.ccsPbxDomain,
this.ccsPbxSipProtocol,
this.sessionId,
this.userId,
this.name,
this.emailId,
this.permissions,
this.attStatus,
this.appRequestAutostart,
this.notificationsCount,
this.sessionExists});
StatusResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
ccsUsername = json['ccs_username'];
ccsPassword = json['ccs_password'];
ccsPbxDomain = json['ccs_pbx_domain'];
ccsPbxSipProtocol = json['ccs_pbx_sip_protocol'];
sessionId = json['session_id'];
userId = json['user_id'];
name = json['name'];
emailId = json['email_id'];
if (json['permissions'] != null) {
permissions = json['permissions'].cast<String>();
}
attStatus = json['att_status'];
appRequestAutostart = json['app_request_autostart'];
notificationsCount = json['notifications_count'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['ccs_username'] = this.ccsUsername;
data['ccs_password'] = this.ccsPassword;
data['ccs_pbx_domain'] = this.ccsPbxDomain;
data['ccs_pbx_sip_protocol'] = this.ccsPbxSipProtocol;
data['session_id'] = this.sessionId;
data['user_id'] = this.userId;
data['name'] = this.name;
data['email_id'] = this.emailId;
data['permissions'] = this.permissions;
data['att_status'] = this.attStatus;
data['app_request_autostart'] = this.appRequestAutostart;
data['notifications_count'] = this.notificationsCount;
data['session_exists'] = this.sessionExists;
return data;
}
}
class SubmitComplaintResponse {
int? error;
int? sessionExists;
SubmitComplaintResponse({this.error, this.sessionExists});
SubmitComplaintResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
class TagGeneratorResponse {
int? error;
String? message;
int? sessionExists;
TagGeneratorResponse({this.error, this.message, this.sessionExists});
TagGeneratorResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
message = json['message'];
sessionExists = json['session_exists'];
}
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;
return data;
}
}
class TagLocationResponse {
int? error;
int? sessionExists;
TagLocationResponse({this.error, this.sessionExists});
TagLocationResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
class TechnicianAddPaymentCollectionResponse {
int? paymentCollectionId;
int? error;
String? message;
int? sessionExists;
TechnicianAddPaymentCollectionResponse(
{this.paymentCollectionId, this.error, this.message, this.sessionExists});
TechnicianAddPaymentCollectionResponse.fromJson(Map<String, dynamic> json) {
paymentCollectionId = json['payment_collection_id'];
error = json['error'];
message = json['message'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['payment_collection_id'] = this.paymentCollectionId;
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
return data;
}
}
class TechnicianResponse {
int? avgRating;
int? pendingComplaints;
int? todayVisits;
int? thisMonthsVisits;
String? paymentCollectionWalletBalanceAmount;
String? monthlyPaymentCollectionAmount;
int? error;
int? sessionExists;
TechnicianResponse(
{this.avgRating,
this.pendingComplaints,
this.todayVisits,
this.thisMonthsVisits,
this.paymentCollectionWalletBalanceAmount,
this.monthlyPaymentCollectionAmount,
this.error,
this.sessionExists});
TechnicianResponse.fromJson(Map<String, dynamic> json) {
avgRating = json['avg_rating'];
pendingComplaints = json['pending_complaints'];
todayVisits = json['today_visits'];
thisMonthsVisits = json['this_months_visits'];
paymentCollectionWalletBalanceAmount =
json['payment_collection_wallet_balance_amount'];
monthlyPaymentCollectionAmount = json['monthly_payment_collection_amount'];
error = json['error'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['avg_rating'] = this.avgRating;
data['pending_complaints'] = this.pendingComplaints;
data['today_visits'] = this.todayVisits;
data['this_months_visits'] = this.thisMonthsVisits;
data['payment_collection_wallet_balance_amount'] =
this.paymentCollectionWalletBalanceAmount;
data['monthly_payment_collection_amount'] =
this.monthlyPaymentCollectionAmount;
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
return data;
}
}
\ No newline at end of file
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