second commit

This commit is contained in:
Anbarasu
2026-05-27 10:35:09 +05:30
parent c53794c04c
commit 1435ac47b0
501 changed files with 52818 additions and 0 deletions

View File

@@ -0,0 +1,129 @@
class GetAdminToken {
int? code;
Details? details;
String? message;
bool? status;
GetAdminToken({this.code, this.details, this.message, this.status});
GetAdminToken.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new Details.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class Details {
int? applocationid;
String? locationname;
String? image;
String? city;
String? state;
String? postcode;
String? latitude;
String? longitude;
String? opentime;
String? closetime;
int? radius;
List<Applocationadmins>? applocationadmins;
Details(
{this.applocationid,
this.locationname,
this.image,
this.city,
this.state,
this.postcode,
this.latitude,
this.longitude,
this.opentime,
this.closetime,
this.radius,
this.applocationadmins});
Details.fromJson(Map<String, dynamic> json) {
applocationid = json['applocationid'];
locationname = json['locationname'];
image = json['image'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
latitude = json['latitude'];
longitude = json['longitude'];
opentime = json['opentime'];
closetime = json['closetime'];
radius = json['radius'];
if (json['applocationadmins'] != null) {
applocationadmins = <Applocationadmins>[];
json['applocationadmins'].forEach((v) {
applocationadmins!.add(new Applocationadmins.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['applocationid'] = this.applocationid;
data['locationname'] = this.locationname;
data['image'] = this.image;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
data['opentime'] = this.opentime;
data['closetime'] = this.closetime;
data['radius'] = this.radius;
if (this.applocationadmins != null) {
data['applocationadmins'] =
this.applocationadmins!.map((v) => v.toJson()).toList();
}
return data;
}
}
class Applocationadmins {
int? applocationconfigid;
int? applocationid;
int? userid;
String? userfcmtokem;
String? notify;
Applocationadmins(
{this.applocationconfigid,
this.applocationid,
this.userid,
this.userfcmtokem,
this.notify});
Applocationadmins.fromJson(Map<String, dynamic> json) {
applocationconfigid = json['applocationconfigid'];
applocationid = json['applocationid'];
userid = json['userid'];
userfcmtokem = json['userfcmtokem'];
notify = json['notify'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['applocationconfigid'] = this.applocationconfigid;
data['applocationid'] = this.applocationid;
data['userid'] = this.userid;
data['userfcmtokem'] = this.userfcmtokem;
data['notify'] = this.notify;
return data;
}
}

View File

@@ -0,0 +1,68 @@
// class AppCategory {
// int? code;
// List<AppCategoryDetails>? details;
// String? message;
// bool? status;
//
// AppCategory({this.code, this.details, this.message, this.status});
//
// AppCategory.fromJson(Map<String, dynamic> json) {
// code = json['code'];
// if (json['details'] != null) {
// details = <AppCategoryDetails>[];
// json['details'].forEach((v) {
// details!.add(new AppCategoryDetails.fromJson(v));
// });
// }
// message = json['message'];
// status = json['status'];
// }
//
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['code'] = this.code;
// if (this.details != null) {
// data['details'] = this.details!.map((v) => v.toJson()).toList();
// }
// data['message'] = this.message;
// data['status'] = this.status;
// return data;
// }
// }
//
// class AppCategoryDetails {
// int? subcategoryid;
// int? categoryid;
// String? subcategoryname;
// String? catgeoryname;
// int? moduleid;
// String? status;
//
// AppCategoryDetails(
// {this.subcategoryid,
// this.categoryid,
// this.subcategoryname,
// this.catgeoryname,
// this.moduleid,
// this.status});
//
// AppCategoryDetails.fromJson(Map<String, dynamic> json) {
// subcategoryid = json['subcategoryid'];
// categoryid = json['categoryid'];
// subcategoryname = json['subcategoryname'];
// catgeoryname = json['catgeoryname'];
// moduleid = json['moduleid'];
// status = json['status'];
// }
//
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['subcategoryid'] = this.subcategoryid;
// data['categoryid'] = this.categoryid;
// data['subcategoryname'] = this.subcategoryname;
// data['catgeoryname'] = this.catgeoryname;
// data['moduleid'] = this.moduleid;
// data['status'] = this.status;
// return data;
// }
// }

View File

@@ -0,0 +1,129 @@
class GetAppCategories {
bool? status;
String? message;
List<AppCategoryDetails>? details;
GetAppCategories({this.status, this.message, this.details});
factory GetAppCategories.fromJson(Map<String, dynamic> json) {
return GetAppCategories(
status: json['status'] as bool?,
message: json['message'] as String?,
details: json['details'] != null
? (json['details'] as List)
.map((v) => AppCategoryDetails.fromJson(v))
.toList()
: null,
);
}
}
class AppCategoryDetails {
int? categoryid;
String? categoryname;
String? categorytype;
int? sortorder;
int? moduleid;
String? imageurl;
String? iconurl;
String? profileurl;
int? crossaxis;
int? mainaxis;
String? status;
AppCategoryDetails(
{this.categoryid,
this.categoryname,
this.categorytype,
this.sortorder,
this.moduleid,
this.imageurl,
this.iconurl,
this.profileurl,
this.crossaxis,
this.mainaxis,
this.status});
AppCategoryDetails.fromJson(Map<String, dynamic> json) {
categoryid = json['categoryid'];
categoryname = json['categoryname'];
categorytype = json['categorytype'];
sortorder = json['sortorder'];
moduleid = json['moduleid'];
imageurl = json['imageurl'];
iconurl = json['iconurl'];
profileurl = json['profileurl'];
crossaxis = json['crossaxis'];
mainaxis = json['mainaxis'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['categoryid'] = this.categoryid;
data['categoryname'] = this.categoryname;
data['categorytype'] = this.categorytype;
data['sortorder'] = this.sortorder;
data['moduleid'] = this.moduleid;
data['imageurl'] = this.imageurl;
data['iconurl'] = this.iconurl;
data['profileurl'] = this.profileurl;
data['crossaxis'] = this.crossaxis;
data['mainaxis'] = this.mainaxis;
data['status'] = this.status;
return data;
}
}
class GetSubCategoriesResponse {
int? code;
List<SubCategory>? details;
String? message;
bool? status;
GetSubCategoriesResponse({this.code, this.details, this.message, this.status});
GetSubCategoriesResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <SubCategory>[];
json['details'].forEach((v) {
details!.add(SubCategory.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
}
class SubCategory {
int? subcategoryid;
int? categoryid;
String? subcategoryname;
String? catgeoryname;
int? moduleid;
String? status;
SubCategory({
this.subcategoryid,
this.categoryid,
this.subcategoryname,
this.catgeoryname,
this.moduleid,
this.status,
});
SubCategory.fromJson(Map<String, dynamic> json) {
subcategoryid = json['subcategoryid'];
categoryid = json['categoryid'];
subcategoryname = json['subcategoryname'];
catgeoryname = json['catgeoryname'];
moduleid = json['moduleid'];
status = json['status'];
}
}

View File

@@ -0,0 +1,92 @@
class AppConfigResponse {
int? code;
bool? status;
String? message;
Details? details;
AppConfigResponse({this.code, this.status, this.message, this.details});
AppConfigResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
status = json['status'];
message = json['message'];
details =
json['details'] != null ? new Details.fromJson(json['details']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['status'] = this.status;
data['message'] = this.message;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
return data;
}
}
class Details {
int? configid;
String? appname;
String? paymentdevkey;
String? paymentlivekey;
String? fcmkey;
String? googleapikey;
int? applocationradius;
int? smsproviderid;
String? providerapi;
String? providerkey;
String? sender;
String? templateid;
int? defaultprovider;
Details(
{this.configid,
this.appname,
this.paymentdevkey,
this.paymentlivekey,
this.fcmkey,
this.googleapikey,
this.applocationradius,
this.smsproviderid,
this.providerapi,
this.providerkey,
this.sender,
this.templateid,
this.defaultprovider});
Details.fromJson(Map<String, dynamic> json) {
configid = json['configid'];
appname = json['appname'];
paymentdevkey = json['paymentdevkey'];
paymentlivekey = json['paymentlivekey'];
fcmkey = json['fcmkey'];
googleapikey = json['googleapikey'];
applocationradius = json['applocationradius'];
smsproviderid = json['smsproviderid'];
providerapi = json['providerapi'];
providerkey = json['providerkey'];
sender = json['sender'];
templateid = json['templateid'];
defaultprovider = json['defaultprovider'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['configid'] = this.configid;
data['appname'] = this.appname;
data['paymentdevkey'] = this.paymentdevkey;
data['paymentlivekey'] = this.paymentlivekey;
data['fcmkey'] = this.fcmkey;
data['googleapikey'] = this.googleapikey;
data['applocationradius'] = this.applocationradius;
data['smsproviderid'] = this.smsproviderid;
data['providerapi'] = this.providerapi;
data['providerkey'] = this.providerkey;
data['sender'] = this.sender;
data['templateid'] = this.templateid;
data['defaultprovider'] = this.defaultprovider;
return data;
}
}

View File

@@ -0,0 +1,76 @@
class GetAppLocations {
int? code;
bool? status;
String? message;
List<AppLocationDetails>? details;
GetAppLocations({this.code, this.status, this.message, this.details});
GetAppLocations.fromJson(Map<String, dynamic> json) {
code = json['code'];
status = json['status'];
message = json['message'];
if (json['details'] != null) {
details = <AppLocationDetails>[];
json['details'].forEach((v) {
details!.add(new AppLocationDetails.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['status'] = this.status;
data['message'] = this.message;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
return data;
}
}
class AppLocationDetails {
int? applocationid;
String? locationname;
String? image;
String? city;
String? state;
String? postcode;
String? latitude;
String? longitude;
AppLocationDetails(
{this.applocationid,
this.locationname,
this.image,
this.city,
this.state,
this.postcode,
this.latitude,
this.longitude});
AppLocationDetails.fromJson(Map<String, dynamic> json) {
applocationid = json['applocationid'];
locationname = json['locationname'];
image = json['image'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
latitude = json['latitude'];
longitude = json['longitude'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['applocationid'] = this.applocationid;
data['locationname'] = this.locationname;
data['image'] = this.image;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
return data;
}
}

View File

@@ -0,0 +1,169 @@
class CreateTenantUserResponse {
int? code;
Details? details;
String? message;
bool? status;
CreateTenantUserResponse(
{this.code, this.details, this.message, this.status});
CreateTenantUserResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new Details.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class Details {
int? userid;
String? authname;
int? configid;
int? authmode;
int? roleid;
String? firstname;
String? lastname;
String? fullname;
String? password;
String? email;
String? contactno;
String? address;
String? suburb;
String? city;
String? state;
String? postcode;
String? userfcmtoken;
int? pin;
int? partnerid;
int? locationid;
int? tenantid;
String? tenantname;
String? tenantaddress;
String? tenantcity;
String? tenantpostcode;
String? tenantlat;
String? tenantlong;
String? locationname;
int? applocationid;
int? moduleid;
int? categoryid;
int? subcategoryid;
Details(
{this.userid,
this.authname,
this.configid,
this.authmode,
this.roleid,
this.firstname,
this.lastname,
this.fullname,
this.password,
this.email,
this.contactno,
this.address,
this.suburb,
this.city,
this.state,
this.postcode,
this.userfcmtoken,
this.pin,
this.partnerid,
this.locationid,
this.tenantid,
this.tenantname,
this.tenantaddress,
this.tenantcity,
this.tenantpostcode,
this.tenantlat,
this.tenantlong,
this.locationname,
this.applocationid,
this.moduleid,
this.categoryid,
this.subcategoryid});
Details.fromJson(Map<String, dynamic> json) {
userid = json['userid'];
authname = json['authname'];
configid = json['configid'];
authmode = json['authmode'];
roleid = json['roleid'];
firstname = json['firstname'];
lastname = json['lastname'];
fullname = json['fullname'];
password = json['password'];
email = json['email'];
contactno = json['contactno'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
userfcmtoken = json['userfcmtoken'];
pin = json['pin'];
partnerid = json['partnerid'];
locationid = json['locationid'];
tenantid = json['tenantid'];
tenantname = json['tenantname'];
tenantaddress = json['tenantaddress'];
tenantcity = json['tenantcity'];
tenantpostcode = json['tenantpostcode'];
tenantlat = json['tenantlat'];
tenantlong = json['tenantlong'];
locationname = json['locationname'];
applocationid = json['applocationid'];
moduleid = json['moduleid'];
categoryid = json['categoryid'];
subcategoryid = json['subcategoryid'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['userid'] = this.userid;
data['authname'] = this.authname;
data['configid'] = this.configid;
data['authmode'] = this.authmode;
data['roleid'] = this.roleid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['fullname'] = this.fullname;
data['password'] = this.password;
data['email'] = this.email;
data['contactno'] = this.contactno;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['userfcmtoken'] = this.userfcmtoken;
data['pin'] = this.pin;
data['partnerid'] = this.partnerid;
data['locationid'] = this.locationid;
data['tenantid'] = this.tenantid;
data['tenantname'] = this.tenantname;
data['tenantaddress'] = this.tenantaddress;
data['tenantcity'] = this.tenantcity;
data['tenantpostcode'] = this.tenantpostcode;
data['tenantlat'] = this.tenantlat;
data['tenantlong'] = this.tenantlong;
data['locationname'] = this.locationname;
data['applocationid'] = this.applocationid;
data['moduleid'] = this.moduleid;
data['categoryid'] = this.categoryid;
data['subcategoryid'] = this.subcategoryid;
return data;
}
}

View File

@@ -0,0 +1,185 @@
class LoginResponse {
int? code;
Details? details;
String? message;
bool? status;
LoginResponse({this.code, this.details, this.message, this.status});
LoginResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new Details.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class Details {
int? userid;
String? authname;
int? configid;
int? authmode;
int? roleid;
String? firstname;
String? lastname;
String? fullname;
String? password;
String? email;
String? contactno;
String? address;
String? suburb;
String? city;
String? state;
String? postcode;
String? userfcmtoken;
int? pin;
int? partnerid;
int? locationid;
int? applocationid;
int? tenantid;
String? tenantname;
String? tenantaddress;
String? tenantcity;
String? tenantpostcode;
String? tenantlat;
String? tenantlong;
String? locationname;
String? applocation;
String? applatitude;
String? applongitude;
int? appradius;
int? moduleid;
int? categoryid;
int? subcategoryid;
Details(
{this.userid,
this.authname,
this.configid,
this.authmode,
this.roleid,
this.firstname,
this.lastname,
this.fullname,
this.password,
this.email,
this.contactno,
this.address,
this.suburb,
this.city,
this.state,
this.postcode,
this.userfcmtoken,
this.pin,
this.partnerid,
this.locationid,
this.applocationid,
this.tenantid,
this.tenantname,
this.tenantaddress,
this.tenantcity,
this.tenantpostcode,
this.tenantlat,
this.tenantlong,
this.locationname,
this.applocation,
this.applatitude,
this.applongitude,
this.appradius,
this.moduleid,
this.categoryid,
this.subcategoryid});
Details.fromJson(Map<String, dynamic> json) {
userid = json['userid'];
authname = json['authname'];
configid = json['configid'];
authmode = json['authmode'];
roleid = json['roleid'];
firstname = json['firstname'];
lastname = json['lastname'];
fullname = json['fullname'];
password = json['password'];
email = json['email'];
contactno = json['contactno'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
userfcmtoken = json['userfcmtoken'];
pin = json['pin'];
partnerid = json['partnerid'];
locationid = json['locationid'];
applocationid = json['applocationid'];
tenantid = json['tenantid'];
tenantname = json['tenantname'];
tenantaddress = json['tenantaddress'];
tenantcity = json['tenantcity'];
tenantpostcode = json['tenantpostcode'];
tenantlat = json['tenantlat'];
tenantlong = json['tenantlong'];
locationname = json['locationname'];
applocation = json['applocation'];
applatitude = json['applatitude'];
applongitude = json['applongitude'];
appradius = json['appradius'];
moduleid = json['moduleid'];
categoryid = json['categoryid'];
subcategoryid = json['subcategoryid'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['userid'] = this.userid;
data['authname'] = this.authname;
data['configid'] = this.configid;
data['authmode'] = this.authmode;
data['roleid'] = this.roleid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['fullname'] = this.fullname;
data['password'] = this.password;
data['email'] = this.email;
data['contactno'] = this.contactno;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['userfcmtoken'] = this.userfcmtoken;
data['pin'] = this.pin;
data['partnerid'] = this.partnerid;
data['locationid'] = this.locationid;
data['applocationid'] = this.applocationid;
data['tenantid'] = this.tenantid;
data['tenantname'] = this.tenantname;
data['tenantaddress'] = this.tenantaddress;
data['tenantcity'] = this.tenantcity;
data['tenantpostcode'] = this.tenantpostcode;
data['tenantlat'] = this.tenantlat;
data['tenantlong'] = this.tenantlong;
data['locationname'] = this.locationname;
data['applocation'] = this.applocation;
data['applatitude'] = this.applatitude;
data['applongitude'] = this.applongitude;
data['appradius'] = this.appradius;
data['moduleid'] = this.moduleid;
data['categoryid'] = this.categoryid;
data['subcategoryid'] = this.subcategoryid;
return data;
}
}

View File

@@ -0,0 +1,18 @@
class SmsResponse {
String? requestId;
String? checkUrl;
SmsResponse({this.requestId, this.checkUrl});
SmsResponse.fromJson(Map<String, dynamic> json) {
requestId = json['request_id'];
checkUrl = json['check_url'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['request_id'] = this.requestId;
data['check_url'] = this.checkUrl;
return data;
}
}

View File

@@ -0,0 +1,112 @@
class CreateCustomerResponse {
int? code;
Details? details;
String? message;
bool? status;
CreateCustomerResponse({this.code, this.details, this.message, this.status});
CreateCustomerResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new Details.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class Details {
int? customerid;
String? firstname;
String? lastname;
String? contactno;
String? email;
int? deliverylocationid;
String? address;
String? suburb;
String? city;
String? state;
String? landmark;
String? doorno;
String? postcode;
String? latitude;
String? longitude;
int? applocationid;
int? tenantlocationid;
int? status;
Details(
{this.customerid,
this.firstname,
this.lastname,
this.contactno,
this.email,
this.deliverylocationid,
this.address,
this.suburb,
this.city,
this.state,
this.landmark,
this.doorno,
this.postcode,
this.latitude,
this.longitude,
this.applocationid,
this.tenantlocationid,
this.status});
Details.fromJson(Map<String, dynamic> json) {
customerid = json['customerid'];
firstname = json['firstname'];
lastname = json['lastname'];
contactno = json['contactno'];
email = json['email'];
deliverylocationid = json['deliverylocationid'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
landmark = json['landmark'];
doorno = json['doorno'];
postcode = json['postcode'];
latitude = json['latitude'];
longitude = json['longitude'];
applocationid = json['applocationid'];
tenantlocationid = json['tenantlocationid'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['customerid'] = this.customerid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['contactno'] = this.contactno;
data['email'] = this.email;
data['deliverylocationid'] = this.deliverylocationid;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['landmark'] = this.landmark;
data['doorno'] = this.doorno;
data['postcode'] = this.postcode;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
data['applocationid'] = this.applocationid;
data['tenantlocationid'] = this.tenantlocationid;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,97 @@
class CreateDeliveryAddressResponse {
int? code;
bool? status;
String? message;
List<Details>? details;
CreateDeliveryAddressResponse(
{this.code, this.status, this.message, this.details});
CreateDeliveryAddressResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
status = json['status'];
message = json['message'];
if (json['details'] != null) {
details = <Details>[];
json['details'].forEach((v) {
details!.add(new Details.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['status'] = this.status;
data['message'] = this.message;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
return data;
}
}
class Details {
int? locationid;
int? customerid;
String? address;
String? suburb;
String? city;
String? state;
String? landmark;
String? doorno;
String? postcode;
String? latitude;
String? longitude;
String? defaultaddress;
int? status;
Details(
{this.locationid,
this.customerid,
this.address,
this.suburb,
this.city,
this.state,
this.landmark,
this.doorno,
this.postcode,
this.latitude,
this.longitude,
this.defaultaddress,
this.status});
Details.fromJson(Map<String, dynamic> json) {
locationid = json['locationid'];
customerid = json['customerid'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
landmark = json['landmark'];
doorno = json['doorno'];
postcode = json['postcode'];
latitude = json['latitude'];
longitude = json['longitude'];
defaultaddress = json['defaultaddress'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['locationid'] = this.locationid;
data['customerid'] = this.customerid;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['landmark'] = this.landmark;
data['doorno'] = this.doorno;
data['postcode'] = this.postcode;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
data['defaultaddress'] = this.defaultaddress;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,299 @@
class CreateOrderResponse {
int? code;
OrderResponseDetails? details;
String? message;
bool? status;
CreateOrderResponse({this.code, this.details, this.message, this.status});
CreateOrderResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new OrderResponseDetails.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class OrderResponseDetails {
int? orderheaderid;
int? applocationid;
String? applocation;
int? tenantid;
int? partnerid;
int? locationid;
int? categoryid;
int? subcategoryid;
int? moduleid;
int? configid;
String? orderid;
String? orderdate;
String? deliverydate;
String? orderstatus;
String? deliverystatus;
int? itemcount;
String? ordernotes;
String? kms;
String? actualkms;
String? pending;
String? processing;
String? ready;
String? cancelled;
String? delivered;
String? assigntime;
String? starttime;
String? arrivaltime;
String? pickuptime;
String? deliverytime;
String? canceltime;
double? deliverycharge;
double? deliveryamt;
int? customerid;
String? pickupcustomer;
String? pickupcontactno;
int? pickuplocationid;
String? pickupaddress;
String? pickupsuburb;
String? pickupcity;
String? pickuplat;
String? pickuplong;
int? deliveryid;
int? deliverycustomerid;
String? deliverycustomer;
String? deliverycontactno;
int? deliverylocationid;
String? deliveryaddress;
String? deliverysuburb;
String? deliverylat;
String? deliverylong;
String? deliverytype;
int? paymenttype;
String? tenantname;
String? tenanttoken;
String? tenantsuburb;
String? tenantcity;
String? tenantcontactno;
String? tenantpostcode;
String? locationname;
String? locationsuburb;
String? locationcity;
String? locationcontactno;
String? rider;
int? smsdelivery;
OrderResponseDetails(
{this.orderheaderid,
this.applocationid,
this.applocation,
this.tenantid,
this.partnerid,
this.locationid,
this.categoryid,
this.subcategoryid,
this.moduleid,
this.configid,
this.orderid,
this.orderdate,
this.deliverydate,
this.orderstatus,
this.deliverystatus,
this.itemcount,
this.ordernotes,
this.kms,
this.actualkms,
this.pending,
this.processing,
this.ready,
this.cancelled,
this.delivered,
this.assigntime,
this.starttime,
this.arrivaltime,
this.pickuptime,
this.deliverytime,
this.canceltime,
this.deliverycharge,
this.deliveryamt,
this.customerid,
this.pickupcustomer,
this.pickupcontactno,
this.pickuplocationid,
this.pickupaddress,
this.pickupsuburb,
this.pickupcity,
this.pickuplat,
this.pickuplong,
this.deliveryid,
this.deliverycustomerid,
this.deliverycustomer,
this.deliverycontactno,
this.deliverylocationid,
this.deliveryaddress,
this.deliverysuburb,
this.deliverylat,
this.deliverylong,
this.deliverytype,
this.paymenttype,
this.tenantname,
this.tenanttoken,
this.tenantsuburb,
this.tenantcity,
this.tenantcontactno,
this.tenantpostcode,
this.locationname,
this.locationsuburb,
this.locationcity,
this.locationcontactno,
this.rider,
this.smsdelivery});
OrderResponseDetails.fromJson(Map<String, dynamic> json) {
orderheaderid = json['orderheaderid'];
applocationid = json['applocationid'];
applocation = json['applocation'];
tenantid = json['tenantid'];
partnerid = json['partnerid'];
locationid = json['locationid'];
categoryid = json['categoryid'];
subcategoryid = json['subcategoryid'];
moduleid = json['moduleid'];
configid = json['configid'];
orderid = json['orderid'];
orderdate = json['orderdate'];
deliverydate = json['deliverydate'];
orderstatus = json['orderstatus'];
deliverystatus = json['deliverystatus'];
itemcount = json['itemcount'];
ordernotes = json['ordernotes'];
kms = json['kms'];
actualkms = json['actualkms'];
pending = json['Pending'];
processing = json['processing'];
ready = json['ready'];
cancelled = json['cancelled'];
delivered = json['delivered'];
assigntime = json['assigntime'];
starttime = json['starttime'];
arrivaltime = json['arrivaltime'];
pickuptime = json['pickuptime'];
deliverytime = json['deliverytime'];
canceltime = json['canceltime'];
deliverycharge = json['deliverycharge'].toDouble();
deliveryamt = json['deliveryamt'].toDouble();
customerid = json['customerid'];
pickupcustomer = json['pickupcustomer'];
pickupcontactno = json['pickupcontactno'];
pickuplocationid = json['pickuplocationid'];
pickupaddress = json['pickupaddress'];
pickupsuburb = json['pickupsuburb'];
pickupcity = json['pickupcity'];
pickuplat = json['pickuplat'];
pickuplong = json['pickuplong'];
deliveryid = json['deliveryid'];
deliverycustomerid = json['deliverycustomerid'];
deliverycustomer = json['deliverycustomer'];
deliverycontactno = json['deliverycontactno'];
deliverylocationid = json['deliverylocationid'];
deliveryaddress = json['deliveryaddress'];
deliverysuburb = json['deliverysuburb'];
deliverylat = json['deliverylat'];
deliverylong = json['deliverylong'];
deliverytype = json['deliverytype'];
paymenttype = json['paymenttype'];
tenantname = json['tenantname'];
tenanttoken = json['tenanttoken'];
tenantsuburb = json['tenantsuburb'];
tenantcity = json['tenantcity'];
tenantcontactno = json['tenantcontactno'];
tenantpostcode = json['tenantpostcode'];
locationname = json['locationname'];
locationsuburb = json['locationsuburb'];
locationcity = json['locationcity'];
locationcontactno = json['locationcontactno'];
rider = json['rider'];
smsdelivery = json['smsdelivery'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['orderheaderid'] = this.orderheaderid;
data['applocationid'] = this.applocationid;
data['applocation'] = this.applocation;
data['tenantid'] = this.tenantid;
data['partnerid'] = this.partnerid;
data['locationid'] = this.locationid;
data['categoryid'] = this.categoryid;
data['subcategoryid'] = this.subcategoryid;
data['moduleid'] = this.moduleid;
data['configid'] = this.configid;
data['orderid'] = this.orderid;
data['orderdate'] = this.orderdate;
data['deliverydate'] = this.deliverydate;
data['orderstatus'] = this.orderstatus;
data['deliverystatus'] = this.deliverystatus;
data['itemcount'] = this.itemcount;
data['ordernotes'] = this.ordernotes;
data['kms'] = this.kms;
data['actualkms'] = this.actualkms;
data['Pending'] = this.pending;
data['processing'] = this.processing;
data['ready'] = this.ready;
data['cancelled'] = this.cancelled;
data['delivered'] = this.delivered;
data['assigntime'] = this.assigntime;
data['starttime'] = this.starttime;
data['arrivaltime'] = this.arrivaltime;
data['pickuptime'] = this.pickuptime;
data['deliverytime'] = this.deliverytime;
data['canceltime'] = this.canceltime;
data['deliverycharge'] = this.deliverycharge;
data['deliveryamt'] = this.deliveryamt;
data['customerid'] = this.customerid;
data['pickupcustomer'] = this.pickupcustomer;
data['pickupcontactno'] = this.pickupcontactno;
data['pickuplocationid'] = this.pickuplocationid;
data['pickupaddress'] = this.pickupaddress;
data['pickupsuburb'] = this.pickupsuburb;
data['pickupcity'] = this.pickupcity;
data['pickuplat'] = this.pickuplat;
data['pickuplong'] = this.pickuplong;
data['deliveryid'] = this.deliveryid;
data['deliverycustomerid'] = this.deliverycustomerid;
data['deliverycustomer'] = this.deliverycustomer;
data['deliverycontactno'] = this.deliverycontactno;
data['deliverylocationid'] = this.deliverylocationid;
data['deliveryaddress'] = this.deliveryaddress;
data['deliverysuburb'] = this.deliverysuburb;
data['deliverylat'] = this.deliverylat;
data['deliverylong'] = this.deliverylong;
data['deliverytype'] = this.deliverytype;
data['paymenttype'] = this.paymenttype;
data['tenantname'] = this.tenantname;
data['tenanttoken'] = this.tenanttoken;
data['tenantsuburb'] = this.tenantsuburb;
data['tenantcity'] = this.tenantcity;
data['tenantcontactno'] = this.tenantcontactno;
data['tenantpostcode'] = this.tenantpostcode;
data['locationname'] = this.locationname;
data['locationsuburb'] = this.locationsuburb;
data['locationcity'] = this.locationcity;
data['locationcontactno'] = this.locationcontactno;
data['rider'] = this.rider;
data['smsdelivery'] = this.smsdelivery;
return data;
}
}

View File

@@ -0,0 +1,117 @@
class GetCustomerByTenantId {
int? code;
List<GetCustomerByTenantIdDetails>? details;
String? message;
bool? status;
GetCustomerByTenantId({this.code, this.details, this.message, this.status});
GetCustomerByTenantId.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <GetCustomerByTenantIdDetails>[];
json['details'].forEach((v) {
details!.add(new GetCustomerByTenantIdDetails.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class GetCustomerByTenantIdDetails {
int? customerid;
String? firstname;
String? lastname;
String? contactno;
String? email;
int? deliverylocationid;
String? address;
String? suburb;
String? city;
String? state;
String? landmark;
String? doorno;
String? postcode;
String? latitude;
String? longitude;
int? applocationid;
int? tenantlocationid;
int? status;
GetCustomerByTenantIdDetails(
{this.customerid,
this.firstname,
this.lastname,
this.contactno,
this.email,
this.deliverylocationid,
this.address,
this.suburb,
this.city,
this.state,
this.landmark,
this.doorno,
this.postcode,
this.latitude,
this.longitude,
this.applocationid,
this.tenantlocationid,
this.status});
GetCustomerByTenantIdDetails.fromJson(Map<String, dynamic> json) {
customerid = json['customerid'];
firstname = json['firstname'];
lastname = json['lastname'];
contactno = json['contactno'];
email = json['email'];
deliverylocationid = json['deliverylocationid'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
landmark = json['landmark'];
doorno = json['doorno'];
postcode = json['postcode'];
latitude = json['latitude'];
longitude = json['longitude'];
applocationid = json['applocationid'];
tenantlocationid = json['tenantlocationid'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['customerid'] = this.customerid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['contactno'] = this.contactno;
data['email'] = this.email;
data['deliverylocationid'] = this.deliverylocationid;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['landmark'] = this.landmark;
data['doorno'] = this.doorno;
data['postcode'] = this.postcode;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
data['applocationid'] = this.applocationid;
data['tenantlocationid'] = this.tenantlocationid;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,116 @@
class GetDropCustomerByTenantId {
int? code;
List<GetDropCustomerByTenantIdDetails>? details;
String? message;
bool? status;
GetDropCustomerByTenantId({this.code, this.details, this.message, this.status});
GetDropCustomerByTenantId.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <GetDropCustomerByTenantIdDetails>[];
json['details'].forEach((v) {
details!.add(new GetDropCustomerByTenantIdDetails.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class GetDropCustomerByTenantIdDetails {
int? customerid;
String? firstname;
String? lastname;
String? contactno;
String? email;
int? deliverylocationid;
String? address;
String? suburb;
String? city;
String? state;
String? landmark;
String? doorno;
String? postcode;
String? latitude;
String? longitude;
int? applocationid;
int? tenantlocationid;
int? status;
GetDropCustomerByTenantIdDetails(
{this.customerid,
this.firstname,
this.lastname,
this.contactno,
this.email,
this.deliverylocationid,
this.address,
this.suburb,
this.city,
this.state,
this.landmark,
this.doorno,
this.postcode,
this.latitude,
this.longitude,
this.applocationid,
this.tenantlocationid,
this.status});
GetDropCustomerByTenantIdDetails.fromJson(Map<String, dynamic> json) {
customerid = json['customerid'];
firstname = json['firstname'];
lastname = json['lastname'];
contactno = json['contactno'];
email = json['email'];
deliverylocationid = json['deliverylocationid'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
landmark = json['landmark'];
doorno = json['doorno'];
postcode = json['postcode'];
latitude = json['latitude'];
longitude = json['longitude'];
applocationid = json['applocationid'];
tenantlocationid = json['tenantlocationid'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['customerid'] = this.customerid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['contactno'] = this.contactno;
data['email'] = this.email;
data['deliverylocationid'] = this.deliverylocationid;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['landmark'] = this.landmark;
data['doorno'] = this.doorno;
data['postcode'] = this.postcode;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
data['applocationid'] = this.applocationid;
data['tenantlocationid'] = this.tenantlocationid;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,97 @@
class GetCustomerAddress {
int? code;
bool? status;
String? message;
List<CustomerAddressDetail>? details;
GetCustomerAddress({this.code, this.status, this.message, this.details});
GetCustomerAddress.fromJson(Map<String, dynamic> json) {
code = json['code'];
status = json['status'];
message = json['message'];
if (json['details'] != null) {
details = <CustomerAddressDetail>[];
json['details'].forEach((v) {
details!.add(new CustomerAddressDetail.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['status'] = this.status;
data['message'] = this.message;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
return data;
}
}
class CustomerAddressDetail {
int? locationid;
int? customerid;
String? address;
String? suburb;
String? city;
String? state;
String? landmark;
String? doorno;
String? postcode;
String? latitude;
String? longitude;
String? defaultaddress;
int? status;
CustomerAddressDetail(
{this.locationid,
this.customerid,
this.address,
this.suburb,
this.city,
this.state,
this.landmark,
this.doorno,
this.postcode,
this.latitude,
this.longitude,
this.defaultaddress,
this.status});
CustomerAddressDetail.fromJson(Map<String, dynamic> json) {
locationid = json['locationid'];
customerid = json['customerid'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
landmark = json['landmark'];
doorno = json['doorno'];
postcode = json['postcode'];
latitude = json['latitude'];
longitude = json['longitude'];
defaultaddress = json['defaultaddress'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['locationid'] = this.locationid;
data['customerid'] = this.customerid;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['landmark'] = this.landmark;
data['doorno'] = this.doorno;
data['postcode'] = this.postcode;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
data['defaultaddress'] = this.defaultaddress;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,144 @@
class GetCustomerByNumber {
int? status;
String? message;
int? code;
Customerdata? customerdata;
GetCustomerByNumber(
{this.status, this.message, this.code, this.customerdata});
GetCustomerByNumber.fromJson(Map<String, dynamic> json) {
status = json['status'];
message = json['message'];
code = json['code'];
customerdata = json['customerdata'] != null
? new Customerdata.fromJson(json['customerdata'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['message'] = this.message;
data['code'] = this.code;
if (this.customerdata != null) {
data['customerdata'] = this.customerdata!.toJson();
}
return data;
}
static List<GetCustomerByNumber> fromJsonList(List list) {
return list.map((item) => GetCustomerByNumber.fromJson(item)).toList();
}
}
class Customerdata {
int? customerid;
int? authmode;
int? configid;
String? devicetype;
String? accountid;
String? firstname;
String? lastname;
String? contactno;
String? email;
String? profileimage;
String? doorno;
String? address;
String? landmark;
String? suburb;
String? city;
String? state;
String? postcode;
String? countrycode;
String? customertoken;
String? latitude;
String? longitude;
String? status;
String? created;
int? locationid;
Customerdata(
{this.customerid,
this.authmode,
this.configid,
this.devicetype,
this.accountid,
this.firstname,
this.lastname,
this.contactno,
this.email,
this.profileimage,
this.doorno,
this.address,
this.landmark,
this.suburb,
this.city,
this.state,
this.postcode,
this.countrycode,
this.customertoken,
this.latitude,
this.longitude,
this.status,
this.created,
this.locationid});
Customerdata.fromJson(Map<String, dynamic> json) {
customerid = json['customerid'];
authmode = json['authmode'];
configid = json['configid'];
devicetype = json['devicetype'];
accountid = json['accountid'];
firstname = json['firstname'];
lastname = json['lastname'];
contactno = json['contactno'];
email = json['email'];
profileimage = json['profileimage'];
doorno = json['doorno'];
address = json['address'];
landmark = json['landmark'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
countrycode = json['countrycode'];
customertoken = json['customertoken'];
latitude = json['latitude'];
longitude = json['longitude'];
status = json['status'];
created = json['created'];
locationid = json['locationid'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['customerid'] = this.customerid;
data['authmode'] = this.authmode;
data['configid'] = this.configid;
data['devicetype'] = this.devicetype;
data['accountid'] = this.accountid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['contactno'] = this.contactno;
data['email'] = this.email;
data['profileimage'] = this.profileimage;
data['doorno'] = this.doorno;
data['address'] = this.address;
data['landmark'] = this.landmark;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['countrycode'] = this.countrycode;
data['customertoken'] = this.customertoken;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
data['status'] = this.status;
data['created'] = this.created;
data['locationid'] = this.locationid;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class AddLocationResponse {
int? code;
String? message;
bool? status;
AddLocationResponse({this.code, this.message, this.status});
AddLocationResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class UpdateLocationResponse {
int? code;
String? message;
bool? status;
UpdateLocationResponse({this.code, this.message, this.status});
UpdateLocationResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,124 @@
class GetLocationByTenantId {
int? code;
List<Details>? details;
String? message;
bool? status;
GetLocationByTenantId({this.code, this.details, this.message, this.status});
GetLocationByTenantId.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <Details>[];
json['details'].forEach((v) {
details!.add(new Details.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class Details {
int? locationid;
int? applocationid;
int? tenantid;
int?moduleid;
String? locationname;
String? locationemail;
String? locationcontact;
String? locationlatitude;
String? locationlong;
String? locationaddress;
String? locationsuburb;
String? locationcity;
String? locationstate;
String? locationpostcode;
String? opentime;
String? closetime;
int? partnerid;
int? deliveryradius;
int? deliverymins;
int? cancelsecs;
Details(
{this.locationid,
this.applocationid,
this.tenantid,
this.moduleid,
this.locationname,
this.locationemail,
this.locationcontact,
this.locationlatitude,
this.locationlong,
this.locationaddress,
this.locationsuburb,
this.locationcity,
this.locationstate,
this.locationpostcode,
this.opentime,
this.closetime,
this.partnerid,
this.deliveryradius,
this.deliverymins,
this.cancelsecs});
Details.fromJson(Map<String, dynamic> json) {
locationid = json['locationid'];
applocationid = json['applocationid'];
tenantid = json['tenantid'];
moduleid = json['moduleid'];
locationname = json['locationname'];
locationemail = json['locationemail'];
locationcontact = json['locationcontact'];
locationlatitude = json['locationlatitude'];
locationlong = json['locationlong'];
locationaddress = json['locationaddress'];
locationsuburb = json['locationsuburb'];
locationcity = json['locationcity'];
locationstate = json['locationstate'];
locationpostcode = json['locationpostcode'];
opentime = json['opentime'];
closetime = json['closetime'];
partnerid = json['partnerid'];
deliveryradius = json['deliveryradius'];
deliverymins = json['deliverymins'];
cancelsecs = json['cancelsecs'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['locationid'] = this.locationid;
data['applocationid'] = this.applocationid;
data['tenantid'] = this.tenantid;
data['moduleid'] = this.moduleid;
data['locationname'] = this.locationname;
data['locationemail'] = this.locationemail;
data['locationcontact'] = this.locationcontact;
data['locationlatitude'] = this.locationlatitude;
data['locationlong'] = this.locationlong;
data['locationaddress'] = this.locationaddress;
data['locationsuburb'] = this.locationsuburb;
data['locationcity'] = this.locationcity;
data['locationstate'] = this.locationstate;
data['locationpostcode'] = this.locationpostcode;
data['opentime'] = this.opentime;
data['closetime'] = this.closetime;
data['partnerid'] = this.partnerid;
data['deliveryradius'] = this.deliveryradius;
data['deliverymins'] = this.deliverymins;
data['cancelsecs'] = this.cancelsecs;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class NotificationResponse {
int? code;
String? message;
bool? status;
NotificationResponse({this.code, this.message, this.status});
NotificationResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,317 @@
class GetOrders {
int? code;
List<OrderDetails>? details;
String? message;
bool? status;
GetOrders({this.code, this.details, this.message, this.status});
GetOrders.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <OrderDetails>[];
json['details'].forEach((v) {
details!.add(new OrderDetails.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class OrderDetails {
int? orderheaderid;
int? applocationid;
int? tenantid;
int? partnerid;
int? locationid;
int? categoryid;
int? subcategoryid;
int? moduleid;
int? configid;
String? orderid;
String? orderdate;
String? deliverydate;
String? orderstatus;
int? itemcount;
String? ordernotes;
String? kms;
String? actualkms;
String? pending;
String? processing;
String? ready;
String? cancelled;
String? completed;
String? assigned;
String? accepted;
String? picked;
String? canceltime;
String? delivered;
String? assigntime;
String? starttime;
String? arrivaltime;
String? pickuptime;
String? deliverytime;
int? deliverycharge;
int? deliveryamt;
int? customerid;
String? pickupcustomer;
String? pickupcontactno;
int? pickuplocationid;
String? pickupaddress;
String? pickupsuburb;
String? pickupcity;
String? pickuplat;
String? pickuplong;
int? deliveryid;
String? deliverycustomer;
String? deliverycontactno;
int? deliverylocationid;
String? deliveryaddress;
String? deliverysuburb;
String? deliverylat;
String? deliverylong;
int? paymenttype;
String? tenantname;
String? tenanttoken;
String? tenantsuburb;
String? tenantcity;
String? tenantcontactno;
String? tenantpostcode;
String? locationname;
String? locationsuburb;
String? locationcity;
String? locationcontactno;
String? rider;
String? ridercontactno;
int? smsdelivery;
String? customertoken;
String? ridertoken;
OrderDetails(
{this.orderheaderid,
this.applocationid,
this.tenantid,
this.partnerid,
this.locationid,
this.categoryid,
this.subcategoryid,
this.moduleid,
this.configid,
this.orderid,
this.orderdate,
this.deliverydate,
this.orderstatus,
this.itemcount,
this.ordernotes,
this.kms,
this.actualkms,
this.pending,
this.processing,
this.ready,
this.cancelled,
this.completed,
this.assigned,
this.accepted,
this.picked,
this.canceltime,
this.assigntime,
this.starttime,
this.arrivaltime,
this.pickuptime,
this.deliverytime,
this.delivered,
this.deliverycharge,
this.deliveryamt,
this.customerid,
this.pickupcustomer,
this.pickupcontactno,
this.pickuplocationid,
this.pickupaddress,
this.pickupsuburb,
this.pickupcity,
this.pickuplat,
this.pickuplong,
this.deliveryid,
this.deliverycustomer,
this.deliverycontactno,
this.deliverylocationid,
this.deliveryaddress,
this.deliverysuburb,
this.deliverylat,
this.deliverylong,
this.paymenttype,
this.tenantname,
this.tenanttoken,
this.tenantsuburb,
this.tenantcity,
this.tenantcontactno,
this.tenantpostcode,
this.locationname,
this.locationsuburb,
this.locationcity,
this.locationcontactno,
this.rider,
this.smsdelivery,
this.ridercontactno,
this.customertoken,
this.ridertoken
});
OrderDetails.fromJson(Map<String, dynamic> json) {
orderheaderid = json['orderheaderid'];
applocationid = json['applocationid'];
tenantid = json['tenantid'];
partnerid = json['partnerid'];
locationid = json['locationid'];
categoryid = json['categoryid'];
subcategoryid = json['subcategoryid'];
moduleid = json['moduleid'];
configid = json['configid'];
orderid = json['orderid'];
orderdate = json['orderdate'];
deliverydate = json['deliverydate'];
orderstatus = json['orderstatus'];
itemcount = json['itemcount'];
ordernotes = json['ordernotes'];
kms = json['kms'];
actualkms = json['actualkms'];
pending = json['Pending'];
processing = json['processing'];
ready = json['ready'];
cancelled = json['cancelled'];
completed = json['completed'];
assigned = json['assigned'];
accepted = json['accepted'];
picked = json['picked'];
assigntime = json['assigntime'];
starttime = json['starttime'];
arrivaltime = json['arrivaltime'];
pickuptime = json['pickuptime'];
deliverytime = json['deliverytime'];
canceltime = json['canceltime'];
delivered = json['delivered'];
deliverycharge = json['deliverycharge'];
deliveryamt = json['deliveryamt'];
customerid = json['customerid'];
pickupcustomer = json['pickupcustomer'];
pickupcontactno = json['pickupcontactno'];
pickuplocationid = json['pickuplocationid'];
pickupaddress = json['pickupaddress'];
pickupsuburb = json['pickupsuburb'];
pickupcity = json['pickupcity'];
pickuplat = json['pickuplat'];
pickuplong = json['pickuplong'];
deliveryid = json['deliveryid'];
deliverycustomer = json['deliverycustomer'];
deliverycontactno = json['deliverycontactno'];
deliverylocationid = json['deliverylocationid'];
deliveryaddress = json['deliveryaddress'];
deliverysuburb = json['deliverysuburb'];
deliverylat = json['deliverylat'];
deliverylong = json['deliverylong'];
paymenttype = json['paymenttype'];
tenantname = json['tenantname'];
tenanttoken = json['tenanttoken'];
tenantsuburb = json['tenantsuburb'];
tenantcity = json['tenantcity'];
tenantcontactno = json['tenantcontactno'];
tenantpostcode = json['tenantpostcode'];
locationname = json['locationname'];
locationsuburb = json['locationsuburb'];
locationcity = json['locationcity'];
locationcontactno = json['locationcontactno'];
rider = json['rider'];
smsdelivery = json['smsdelivery'];
ridercontactno = json['ridercontactno'];
customertoken = json['customertoken'];
ridertoken = json['ridertoken'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['orderheaderid'] = this.orderheaderid;
data['applocationid'] = this.applocationid;
data['tenantid'] = this.tenantid;
data['partnerid'] = this.partnerid;
data['locationid'] = this.locationid;
data['categoryid'] = this.categoryid;
data['subcategoryid'] = this.subcategoryid;
data['moduleid'] = this.moduleid;
data['configid'] = this.configid;
data['orderid'] = this.orderid;
data['orderdate'] = this.orderdate;
data['deliverydate'] = this.deliverydate;
data['orderstatus'] = this.orderstatus;
data['itemcount'] = this.itemcount;
data['ordernotes'] = this.ordernotes;
data['kms'] = this.kms;
data['actualkms'] = this.actualkms;
data['Pending'] = this.pending;
data['processing'] = this.processing;
data['ready'] = this.ready;
data['cancelled'] = this.cancelled;
data['completed'] = this.completed;
data['assigned'] = this.assigned;
data['accepted'] = this.accepted;
data['picked'] = this.picked;
data['delivered'] = this.delivered;
data['assigntime'] = this.assigntime;
data['starttime'] = this.starttime;
data['arrivaltime'] = this.arrivaltime;
data['pickuptime'] = this.pickuptime;
data['deliverytime'] = this.deliverytime;
data['canceltime'] = this.canceltime;
data['delivered'] = this.delivered;
data['deliverycharge'] = this.deliverycharge;
data['deliveryamt'] = this.deliveryamt;
data['customerid'] = this.customerid;
data['pickupcustomer'] = this.pickupcustomer;
data['pickupcontactno'] = this.pickupcontactno;
data['pickuplocationid'] = this.pickuplocationid;
data['pickupaddress'] = this.pickupaddress;
data['pickupsuburb'] = this.pickupsuburb;
data['pickupcity'] = this.pickupcity;
data['pickuplat'] = this.pickuplat;
data['pickuplong'] = this.pickuplong;
data['deliveryid'] = this.deliveryid;
data['deliverycustomer'] = this.deliverycustomer;
data['deliverycontactno'] = this.deliverycontactno;
data['deliverylocationid'] = this.deliverylocationid;
data['deliveryaddress'] = this.deliveryaddress;
data['deliverysuburb'] = this.deliverysuburb;
data['deliverylat'] = this.deliverylat;
data['deliverylong'] = this.deliverylong;
data['paymenttype'] = this.paymenttype;
data['tenantname'] = this.tenantname;
data['tenanttoken'] = this.tenanttoken;
data['tenantsuburb'] = this.tenantsuburb;
data['tenantcity'] = this.tenantcity;
data['tenantcontactno'] = this.tenantcontactno;
data['tenantpostcode'] = this.tenantpostcode;
data['locationname'] = this.locationname;
data['locationsuburb'] = this.locationsuburb;
data['locationcity'] = this.locationcity;
data['locationcontactno'] = this.locationcontactno;
data['rider'] = this.rider;
data['smsdelivery'] = this.smsdelivery;
data['ridercontactno'] = this.ridercontactno;
data['customertoken'] = this.customertoken;
data['ridertoken'] = this.ridertoken;
return data;
}
}

View File

@@ -0,0 +1,112 @@
class GetPartnersInfo {
int? code;
List<PartnerInfoDetails>? details;
String? message;
bool? status;
GetPartnersInfo({this.code, this.details, this.message, this.status});
GetPartnersInfo.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <PartnerInfoDetails>[];
json['details'].forEach((v) {
details!.add(new PartnerInfoDetails.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class PartnerInfoDetails {
int? partnerid;
int? partnertypeid;
int? applocationid;
String? partnername;
String? registrationno;
String? primartcontact;
String? primaryemail;
String? contactno;
int? bizcategoryid;
int? bizsubcategoryid;
String? address;
String? suburb;
String? state;
String? city;
String? postcode;
String? partnerinfo;
String? partnerimage;
PartnerInfoDetails(
{this.partnerid,
this.partnertypeid,
this.applocationid,
this.partnername,
this.registrationno,
this.primartcontact,
this.primaryemail,
this.contactno,
this.bizcategoryid,
this.bizsubcategoryid,
this.address,
this.suburb,
this.state,
this.city,
this.postcode,
this.partnerinfo,
this.partnerimage});
PartnerInfoDetails.fromJson(Map<String, dynamic> json) {
partnerid = json['partnerid'];
partnertypeid = json['partnertypeid'];
applocationid = json['applocationid'];
partnername = json['partnername'];
registrationno = json['registrationno'];
primartcontact = json['primartcontact'];
primaryemail = json['primaryemail'];
contactno = json['contactno'];
bizcategoryid = json['bizcategoryid'];
bizsubcategoryid = json['bizsubcategoryid'];
address = json['address'];
suburb = json['suburb'];
state = json['state'];
city = json['city'];
postcode = json['postcode'];
partnerinfo = json['partnerinfo'];
partnerimage = json['partnerimage'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['partnerid'] = this.partnerid;
data['partnertypeid'] = this.partnertypeid;
data['applocationid'] = this.applocationid;
data['partnername'] = this.partnername;
data['registrationno'] = this.registrationno;
data['primartcontact'] = this.primartcontact;
data['primaryemail'] = this.primaryemail;
data['contactno'] = this.contactno;
data['bizcategoryid'] = this.bizcategoryid;
data['bizsubcategoryid'] = this.bizsubcategoryid;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['state'] = this.state;
data['city'] = this.city;
data['postcode'] = this.postcode;
data['partnerinfo'] = this.partnerinfo;
data['partnerimage'] = this.partnerimage;
return data;
}
}

View File

@@ -0,0 +1,184 @@
class GetRiderPoolsModel {
int? code;
List<GetRiderDetails>? details;
String? message;
bool? status;
GetRiderPoolsModel({this.code, this.details, this.message, this.status});
GetRiderPoolsModel.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <GetRiderDetails>[];
json['details'].forEach((v) {
details!.add(new GetRiderDetails.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class GetRiderDetails {
int? userid;
String? authname;
int? configid;
int? authmode;
int? roleid;
String? firstname;
String? lastname;
String? fullname;
String? password;
String? email;
String? contactno;
String? address;
String? suburb;
String? city;
String? state;
String? postcode;
String? userfcmtoken;
int? pin;
int? partnerid;
String? identificationno;
String? vehiclename;
String? vehicleno;
String? licenseno;
String? insoranceno;
String? insurancedate;
int? shiftid;
String? starttime;
String? endtime;
int? shifthours;
double? basefare;
double? additionalcharges;
int? orders;
double? fuelcharge;
String? logdate;
String? status;
GetRiderDetails(
{this.userid,
this.authname,
this.configid,
this.authmode,
this.roleid,
this.firstname,
this.lastname,
this.fullname,
this.password,
this.email,
this.contactno,
this.address,
this.suburb,
this.city,
this.state,
this.postcode,
this.userfcmtoken,
this.pin,
this.partnerid,
this.identificationno,
this.vehiclename,
this.vehicleno,
this.licenseno,
this.insoranceno,
this.insurancedate,
this.shiftid,
this.starttime,
this.endtime,
this.shifthours,
this.basefare,
this.additionalcharges,
this.orders,
this.fuelcharge,
this.logdate,
this.status});
GetRiderDetails.fromJson(Map<String, dynamic> json) {
userid = json['userid'];
authname = json['authname'];
configid = json['configid'];
authmode = json['authmode'];
roleid = json['roleid'];
firstname = json['firstname'];
lastname = json['lastname'];
fullname = json['fullname'];
password = json['password'];
email = json['email'];
contactno = json['contactno'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
userfcmtoken = json['userfcmtoken'];
pin = json['pin'];
partnerid = json['partnerid'];
identificationno = json['identificationno'];
vehiclename = json['vehiclename'];
vehicleno = json['vehicleno'];
licenseno = json['licenseno'];
insoranceno = json['insoranceno'];
insurancedate = json['insurancedate'];
shiftid = json['shiftid'];
starttime = json['starttime'];
endtime = json['endtime'];
shifthours = json['shifthours'];
basefare = json['basefare'].toDouble();
additionalcharges = json['additionalcharges'].toDouble();
orders = json['orders'];
fuelcharge = json['fuelcharge'].toDouble();
logdate = json['logdate'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['userid'] = this.userid;
data['authname'] = this.authname;
data['configid'] = this.configid;
data['authmode'] = this.authmode;
data['roleid'] = this.roleid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['fullname'] = this.fullname;
data['password'] = this.password;
data['email'] = this.email;
data['contactno'] = this.contactno;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['userfcmtoken'] = this.userfcmtoken;
data['pin'] = this.pin;
data['partnerid'] = this.partnerid;
data['identificationno'] = this.identificationno;
data['vehiclename'] = this.vehiclename;
data['vehicleno'] = this.vehicleno;
data['licenseno'] = this.licenseno;
data['insoranceno'] = this.insoranceno;
data['insurancedate'] = this.insurancedate;
data['shiftid'] = this.shiftid;
data['starttime'] = this.starttime;
data['endtime'] = this.endtime;
data['shifthours'] = this.shifthours;
data['basefare'] = this.basefare;
data['additionalcharges'] = this.additionalcharges;
data['orders'] = this.orders;
data['fuelcharge'] = this.fuelcharge;
data['logdate'] = this.logdate;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class CreateStaffResponse {
int? code;
String? message;
bool? status;
CreateStaffResponse({this.code, this.message, this.status});
CreateStaffResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,136 @@
class GetStaffsResponse {
int? code;
List<StaffDetails>? details;
String? message;
bool? status;
GetStaffsResponse({this.code, this.details, this.message, this.status});
GetStaffsResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <StaffDetails>[];
json['details'].forEach((v) {
details!.add(new StaffDetails.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class StaffDetails {
int? userid;
String? authname;
int? configid;
int? authmode;
int? roleid;
String? firstname;
String? lastname;
String? fullname;
String? password;
String? email;
String? contactno;
String? address;
String? suburb;
String? city;
String? state;
String? postcode;
String? userfcmtoken;
int? pin;
int? applocationid;
int? partnerid;
int? tenantid;
int? locationid;
String? locationname;
StaffDetails(
{this.userid,
this.authname,
this.configid,
this.authmode,
this.roleid,
this.firstname,
this.lastname,
this.fullname,
this.password,
this.email,
this.contactno,
this.address,
this.suburb,
this.city,
this.state,
this.postcode,
this.userfcmtoken,
this.pin,
this.applocationid,
this.partnerid,
this.tenantid,
this.locationid,
this.locationname});
StaffDetails.fromJson(Map<String, dynamic> json) {
userid = json['userid'];
authname = json['authname'];
configid = json['configid'];
authmode = json['authmode'];
roleid = json['roleid'];
firstname = json['firstname'];
lastname = json['lastname'];
fullname = json['fullname'];
password = json['password'];
email = json['email'];
contactno = json['contactno'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
userfcmtoken = json['userfcmtoken'];
pin = json['pin'];
applocationid = json['applocationid'];
partnerid = json['partnerid'];
tenantid = json['tenantid'];
locationid = json['locationid'];
locationname = json['locationname'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['userid'] = this.userid;
data['authname'] = this.authname;
data['configid'] = this.configid;
data['authmode'] = this.authmode;
data['roleid'] = this.roleid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['fullname'] = this.fullname;
data['password'] = this.password;
data['email'] = this.email;
data['contactno'] = this.contactno;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['userfcmtoken'] = this.userfcmtoken;
data['pin'] = this.pin;
data['applocationid'] = this.applocationid;
data['partnerid'] = this.partnerid;
data['tenantid'] = this.tenantid;
data['locationid'] = this.locationid;
data['locationname'] = this.locationname;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class UpdateStaffResponse {
int? code;
String? message;
bool? status;
UpdateStaffResponse({this.code, this.message, this.status});
UpdateStaffResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class CancelOrderResponse {
int? code;
String? message;
bool? status;
CancelOrderResponse({this.code, this.message, this.status});
CancelOrderResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,298 @@
class GetDeliveries {
int? code;
List<DeliveriesDetails>? details;
String? message;
bool? status;
GetDeliveries({this.code, this.details, this.message, this.status});
GetDeliveries.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <DeliveriesDetails>[];
json['details'].forEach((v) {
details!.add(new DeliveriesDetails.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class DeliveriesDetails {
int? deliveryid;
int? orderheaderid;
int? applocationid;
int? configid;
int? partnerid;
int? tenantid;
int? moduleid;
int? locationid;
int? categoryid;
int? userid;
int? subcategoryid;
String? orderid;
String? deliverydate;
String? orderstatus;
String? starttime;
String? arrivaltime;
String? pickuptime;
String? deliverytime;
String? canceltime;
int? itemcount;
int? orderamount;
int? customerid;
String? pickupcustomer;
String? pickupcontactno;
String? pickupaddress;
String? pickuplocation;
String? pickuplat;
String? pickuplon;
int? deliverycustomerid;
int? deliverylocationid;
String? deliverycustomer;
String? deliverycontactno;
String? deliveryaddress;
String? deliverylocation;
String? droplat;
String? droplon;
String? deliverylat;
String? deliverylong;
int? deliverycharges;
int? deliveryamt;
String? notes;
String? ordernotes;
String? riderslat;
String? riderslon;
int? firstmilekm;
int? firstmilecharges;
int? lastmilecharges;
int? ridercharges;
String? kms;
String? actualkms;
int? paymenttype;
String? tenantname;
String? tenantcontactno;
String? tenanttoken;
String? tenantsuburb;
String? tenantcity;
String? locationname;
String? locationcontactno;
String? locationsuburb;
String? ridername;
String? userfcmtoken;
int? queueid;
String? ridercontact;
DeliveriesDetails(
{this.deliveryid,
this.orderheaderid,
this.applocationid,
this.configid,
this.partnerid,
this.tenantid,
this.moduleid,
this.locationid,
this.categoryid,
this.userid,
this.subcategoryid,
this.orderid,
this.deliverydate,
this.orderstatus,
this.starttime,
this.arrivaltime,
this.pickuptime,
this.deliverytime,
this.canceltime,
this.itemcount,
this.orderamount,
this.customerid,
this.pickupcustomer,
this.pickupcontactno,
this.pickupaddress,
this.pickuplocation,
this.pickuplat,
this.pickuplon,
this.deliverycustomerid,
this.deliverylocationid,
this.deliverycustomer,
this.deliverycontactno,
this.deliveryaddress,
this.deliverylocation,
this.droplat,
this.droplon,
this.deliverylat,
this.deliverylong,
this.deliverycharges,
this.deliveryamt,
this.notes,
this.ordernotes,
this.riderslat,
this.riderslon,
this.firstmilekm,
this.firstmilecharges,
this.lastmilecharges,
this.ridercharges,
this.kms,
this.actualkms,
this.paymenttype,
this.tenantname,
this.tenantcontactno,
this.tenanttoken,
this.tenantsuburb,
this.tenantcity,
this.locationname,
this.locationcontactno,
this.locationsuburb,
this.ridername,
this.userfcmtoken,
this.queueid,
this.ridercontact,
});
DeliveriesDetails.fromJson(Map<String, dynamic> json) {
deliveryid = json['deliveryid'];
orderheaderid = json['orderheaderid'];
applocationid = json['applocationid'];
configid = json['configid'];
partnerid = json['partnerid'];
tenantid = json['tenantid'];
moduleid = json['moduleid'];
locationid = json['locationid'];
categoryid = json['categoryid'];
userid = json['userid'];
subcategoryid = json['subcategoryid'];
orderid = json['orderid'];
deliverydate = json['deliverydate'];
orderstatus = json['orderstatus'];
starttime = json['starttime'];
arrivaltime = json['arrivaltime'];
pickuptime = json['pickuptime'];
deliverytime = json['deliverytime'];
canceltime = json['canceltime'];
itemcount = json['itemcount'];
orderamount = json['orderamount'];
customerid = json['customerid'];
pickupcustomer = json['pickupcustomer'];
pickupcontactno = json['pickupcontactno'];
pickupaddress = json['Pickupaddress'];
pickuplocation = json['pickuplocation'];
pickuplat = json['pickuplat'];
pickuplon = json['pickuplon'];
deliverycustomerid = json['deliverycustomerid'];
deliverylocationid = json['deliverylocationid'];
deliverycustomer = json['deliverycustomer'];
deliverycontactno = json['deliverycontactno'];
deliveryaddress = json['deliveryaddress'];
deliverylocation = json['deliverylocation'];
droplat = json['droplat'];
droplon = json['droplon'];
deliverylat = json['deliverylat'];
deliverylong = json['deliverylong'];
deliverycharges = json['deliverycharges'];
deliveryamt = json['deliveryamt'];
notes = json['notes'];
ordernotes = json['ordernotes'];
riderslat = json['riderslat'];
riderslon = json['riderslon'];
firstmilekm = json['firstmilekm'];
firstmilecharges = json['firstmilecharges'];
lastmilecharges = json['lastmilecharges'];
ridercharges = json['ridercharges'];
kms = json['kms'];
actualkms = json['actualkms'];
paymenttype = json['paymenttype'];
tenantname = json['tenantname'];
tenantcontactno = json['tenantcontactno'];
tenanttoken = json['tenanttoken'];
tenantsuburb = json['tenantsuburb'];
tenantcity = json['tenantcity'];
locationname = json['locationname'];
locationcontactno = json['locationcontactno'];
locationsuburb = json['locationsuburb'];
ridername = json['ridername'];
userfcmtoken = json['userfcmtoken'];
queueid = json['queueid'];
ridercontact = json['ridercontact'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['deliveryid'] = this.deliveryid;
data['orderheaderid'] = this.orderheaderid;
data['applocationid'] = this.applocationid;
data['configid'] = this.configid;
data['partnerid'] = this.partnerid;
data['tenantid'] = this.tenantid;
data['moduleid'] = this.moduleid;
data['locationid'] = this.locationid;
data['categoryid'] = this.categoryid;
data['userid'] = this.userid;
data['subcategoryid'] = this.subcategoryid;
data['orderid'] = this.orderid;
data['deliverydate'] = this.deliverydate;
data['orderstatus'] = this.orderstatus;
data['starttime'] = this.starttime;
data['arrivaltime'] = this.arrivaltime;
data['pickuptime'] = this.pickuptime;
data['deliverytime'] = this.deliverytime;
data['canceltime'] = this.canceltime;
data['itemcount'] = this.itemcount;
data['orderamount'] = this.orderamount;
data['customerid'] = this.customerid;
data['pickupcustomer'] = this.pickupcustomer;
data['pickupcontactno'] = this.pickupcontactno;
data['Pickupaddress'] = this.pickupaddress;
data['pickuplocation'] = this.pickuplocation;
data['pickuplat'] = this.pickuplat;
data['pickuplon'] = this.pickuplon;
data['deliverycustomerid'] = this.deliverycustomerid;
data['deliverylocationid'] = this.deliverylocationid;
data['deliverycustomer'] = this.deliverycustomer;
data['deliverycontactno'] = this.deliverycontactno;
data['deliveryaddress'] = this.deliveryaddress;
data['deliverylocation'] = this.deliverylocation;
data['droplat'] = this.droplat;
data['droplon'] = this.droplon;
data['deliverylat'] = this.deliverylat;
data['deliverylong'] = this.deliverylong;
data['deliverycharges'] = this.deliverycharges;
data['deliveryamt'] = this.deliveryamt;
data['notes'] = this.notes;
data['ordernotes'] = this.ordernotes;
data['riderslat'] = this.riderslat;
data['riderslon'] = this.riderslon;
data['firstmilekm'] = this.firstmilekm;
data['firstmilecharges'] = this.firstmilecharges;
data['lastmilecharges'] = this.lastmilecharges;
data['ridercharges'] = this.ridercharges;
data['kms'] = this.kms;
data['actualkms'] = this.actualkms;
data['paymenttype'] = this.paymenttype;
data['tenantname'] = this.tenantname;
data['tenantcontactno'] = this.tenantcontactno;
data['tenanttoken'] = this.tenanttoken;
data['tenantsuburb'] = this.tenantsuburb;
data['tenantcity'] = this.tenantcity;
data['locationname'] = this.locationname;
data['locationcontactno'] = this.locationcontactno;
data['locationsuburb'] = this.locationsuburb;
data['ridername'] = this.ridername;
data['userfcmtoken'] = this.userfcmtoken;
data['queueid'] = this.queueid;
data['ridercontact'] = this.ridercontact;
return data;
}
}

View File

@@ -0,0 +1,68 @@
class OrderSummary {
int? code;
OrderSummaryDetails? details;
String? message;
bool? status;
OrderSummary({this.code, this.details, this.message, this.status});
OrderSummary.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new OrderSummaryDetails.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class OrderSummaryDetails {
int? total;
int? created;
int? pending;
int? accepted;
int? picked;
int? delivered;
int? cancelled;
OrderSummaryDetails(
{this.total,
this.created,
this.pending,
this.accepted,
this.picked,
this.delivered,
this.cancelled});
OrderSummaryDetails.fromJson(Map<String, dynamic> json) {
total = json['total'];
created = json['created'];
pending = json['pending'];
accepted = json['accepted'];
picked = json['picked'];
delivered = json['delivered'];
cancelled = json['cancelled'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['total'] = this.total;
data['created'] = this.created;
data['pending'] = this.pending;
data['accepted'] = this.accepted;
data['picked'] = this.picked;
data['delivered'] = this.delivered;
data['cancelled'] = this.cancelled;
return data;
}
}

View File

@@ -0,0 +1,125 @@
class GetLocationByTenantId {
int? code;
List<TenantLocationDetails>? details;
String? message;
bool? status;
GetLocationByTenantId({this.code, this.details, this.message, this.status});
GetLocationByTenantId.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <TenantLocationDetails>[];
json['details'].forEach((v) {
details!.add(new TenantLocationDetails.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class TenantLocationDetails {
int? locationid;
int? tenantid;
int? moduleid;
String? locationname;
String? locationemail;
String? locationcontact;
String? locationlatitude;
String? locationlong;
String? locationaddress;
String? locationsuburb;
String? locationstate;
String? locationcity;
String? locationpostcode;
String? opentime;
String? closetime;
int? partnerid;
int? deliveryradius;
int? deliverymins;
int? cancelsecs;
int? applocationid;
TenantLocationDetails(
{this.locationid,
this.tenantid,
this.moduleid,
this.locationname,
this.locationemail,
this.locationcontact,
this.locationlatitude,
this.locationlong,
this.locationaddress,
this.locationsuburb,
this.locationstate,
this.locationcity,
this.locationpostcode,
this.opentime,
this.closetime,
this.partnerid,
this.deliveryradius,
this.deliverymins,
this.cancelsecs,
this.applocationid});
TenantLocationDetails.fromJson(Map<String, dynamic> json) {
locationid = json['locationid'];
tenantid = json['tenantid'];
moduleid = json['moduleid'];
locationname = json['locationname'];
locationemail = json['locationemail'];
locationcontact = json['locationcontact'];
locationlatitude = json['locationlatitude'];
locationlong = json['locationlong'];
locationaddress = json['locationaddress'];
locationsuburb = json['locationsuburb'];
locationstate = json['locationstate'];
locationcity = json['locationcity'];
locationpostcode = json['locationpostcode'];
opentime = json['opentime'];
closetime = json['closetime'];
partnerid = json['partnerid'];
deliveryradius = json['deliveryradius'];
deliverymins = json['deliverymins'];
cancelsecs = json['cancelsecs'];
applocationid = json['applocationid'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['locationid'] = this.locationid;
data['tenantid'] = this.tenantid;
data['moduleid'] = this.moduleid;
data['locationname'] = this.locationname;
data['locationemail'] = this.locationemail;
data['locationcontact'] = this.locationcontact;
data['locationlatitude'] = this.locationlatitude;
data['locationlong'] = this.locationlong;
data['locationaddress'] = this.locationaddress;
data['locationsuburb'] = this.locationsuburb;
data['locationstate'] = this.locationstate;
data['locationcity'] = this.locationcity;
data['locationpostcode'] = this.locationpostcode;
data['opentime'] = this.opentime;
data['closetime'] = this.closetime;
data['partnerid'] = this.partnerid;
data['deliveryradius'] = this.deliveryradius;
data['deliverymins'] = this.deliverymins;
data['cancelsecs'] = this.cancelsecs;
data['applocationid'] = this.applocationid;
return data;
}
}

View File

@@ -0,0 +1,120 @@
class GetLocationByLocaionId {
int? code;
GetLocationDetails? details;
String? message;
bool? status;
GetLocationByLocaionId({this.code, this.details, this.message, this.status});
GetLocationByLocaionId.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new GetLocationDetails.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class GetLocationDetails {
int? locationid;
int? tenantid;
int? moduleid;
String? locationname;
String? locationemail;
String? locationcontact;
String? locationlatitude;
String? locationlong;
String? locationaddress;
String? locationsuburb;
String? locationstate;
String? locationcity;
String? locationpostcode;
String? opentime;
String? closetime;
int? partnerid;
int? deliveryradius;
int? deliverymins;
int? cancelsecs;
int? applocationid;
GetLocationDetails(
{this.locationid,
this.tenantid,
this.moduleid,
this.locationname,
this.locationemail,
this.locationcontact,
this.locationlatitude,
this.locationlong,
this.locationaddress,
this.locationsuburb,
this.locationstate,
this.locationcity,
this.locationpostcode,
this.opentime,
this.closetime,
this.partnerid,
this.deliveryradius,
this.deliverymins,
this.cancelsecs,
this.applocationid});
GetLocationDetails.fromJson(Map<String, dynamic> json) {
locationid = json['locationid'];
tenantid = json['tenantid'];
moduleid = json['moduleid'];
locationname = json['locationname'];
locationemail = json['locationemail'];
locationcontact = json['locationcontact'];
locationlatitude = json['locationlatitude'];
locationlong = json['locationlong'];
locationaddress = json['locationaddress'];
locationsuburb = json['locationsuburb'];
locationstate = json['locationstate'];
locationcity = json['locationcity'];
locationpostcode = json['locationpostcode'];
opentime = json['opentime'];
closetime = json['closetime'];
partnerid = json['partnerid'];
deliveryradius = json['deliveryradius'];
deliverymins = json['deliverymins'];
cancelsecs = json['cancelsecs'];
applocationid = json['applocationid'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['locationid'] = this.locationid;
data['tenantid'] = this.tenantid;
data['moduleid'] = this.moduleid;
data['locationname'] = this.locationname;
data['locationemail'] = this.locationemail;
data['locationcontact'] = this.locationcontact;
data['locationlatitude'] = this.locationlatitude;
data['locationlong'] = this.locationlong;
data['locationaddress'] = this.locationaddress;
data['locationsuburb'] = this.locationsuburb;
data['locationstate'] = this.locationstate;
data['locationcity'] = this.locationcity;
data['locationpostcode'] = this.locationpostcode;
data['opentime'] = this.opentime;
data['closetime'] = this.closetime;
data['partnerid'] = this.partnerid;
data['deliveryradius'] = this.deliveryradius;
data['deliverymins'] = this.deliverymins;
data['cancelsecs'] = this.cancelsecs;
data['applocationid'] = this.applocationid;
return data;
}
}

View File

@@ -0,0 +1,105 @@
class GetTenantPricing {
int? code;
GetTenantPricingDetails? details;
String? message;
bool? status;
GetTenantPricing({this.code, this.details, this.message, this.status});
GetTenantPricing.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new GetTenantPricingDetails.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class GetTenantPricingDetails {
int? tenantpricingid;
int? pricingid;
int? tenantid;
int? applocationid;
int? pricingtypeid;
String? pricingtype;
int? locationid;
String? slab;
int? configid;
String? pricingdate;
int? baseprice;
double? priceperkm;
int? minkm;
int? maxkm;
int? orders;
int? othercharges;
GetTenantPricingDetails(
{this.tenantpricingid,
this.pricingid,
this.tenantid,
this.applocationid,
this.pricingtypeid,
this.pricingtype,
this.locationid,
this.slab,
this.configid,
this.pricingdate,
this.baseprice,
this.priceperkm,
this.minkm,
this.maxkm,
this.orders,
this.othercharges});
GetTenantPricingDetails.fromJson(Map<String, dynamic> json) {
tenantpricingid = json['tenantpricingid'];
pricingid = json['pricingid'];
tenantid = json['tenantid'];
applocationid = json['applocationid'];
pricingtypeid = json['pricingtypeid'];
pricingtype = json['pricingtype'];
locationid = json['locationid'];
slab = json['slab'];
configid = json['configid'];
pricingdate = json['pricingdate'];
baseprice = json['baseprice'];
priceperkm = json['priceperkm'].toDouble();
minkm = json['minkm'];
maxkm = json['maxkm'];
orders = json['orders'];
othercharges = json['othercharges'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['tenantpricingid'] = this.tenantpricingid;
data['pricingid'] = this.pricingid;
data['tenantid'] = this.tenantid;
data['applocationid'] = this.applocationid;
data['pricingtypeid'] = this.pricingtypeid;
data['pricingtype'] = this.pricingtype;
data['locationid'] = this.locationid;
data['slab'] = this.slab;
data['configid'] = this.configid;
data['pricingdate'] = this.pricingdate;
data['baseprice'] = this.baseprice;
data['priceperkm'] = this.priceperkm;
data['minkm'] = this.minkm;
data['maxkm'] = this.maxkm;
data['orders'] = this.orders;
data['othercharges'] = this.othercharges;
return data;
}
}

View File

@@ -0,0 +1,197 @@
class TenantInfo {
int? code;
TenantDetails? details;
String? message;
bool? status;
TenantInfo({this.code, this.details, this.message, this.status});
TenantInfo.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new TenantDetails.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class TenantDetails {
int? tenantid;
String? tenantname;
String? locationname;
String? tenanttype;
String? registrationno;
String? tenanttoken;
String? companyname;
String? primaryemail;
String? primarycontact;
int? categoryid;
int? subcategoryid;
String? address;
String? suburb;
String? city;
String? state;
String? postcode;
String? latitude;
String? longitude;
String? tenantimage;
String? tenantinfo;
int? paymenttype;
int? paymode1;
int? paymode2;
int? promotion;
int? partnerid;
int? minorder;
int? applolcationid;
String? applocation;
int? approved;
int? moduleid;
String? subcategoryname;
String? firstname;
String? lastname;
String? accountname;
String? status;
int? allocationid;
String? allocationtype;
int? allocationmode;
int? locationid;
TenantDetails(
{this.tenantid,
this.tenantname,
this.locationname,
this.tenanttype,
this.registrationno,
this.tenanttoken,
this.companyname,
this.primaryemail,
this.primarycontact,
this.categoryid,
this.subcategoryid,
this.address,
this.suburb,
this.city,
this.state,
this.postcode,
this.latitude,
this.longitude,
this.tenantimage,
this.tenantinfo,
this.paymenttype,
this.paymode1,
this.paymode2,
this.promotion,
this.partnerid,
this.minorder,
this.applolcationid,
this.applocation,
this.approved,
this.moduleid,
this.subcategoryname,
this.firstname,
this.lastname,
this.accountname,
this.status,
this.allocationid,
this.allocationtype,
this.allocationmode,
this.locationid,
});
TenantDetails.fromJson(Map<String, dynamic> json) {
tenantid = json['tenantid'];
tenantname = json['tenantname'];
locationname = json['locationname'];
tenanttype = json['tenanttype'];
registrationno = json['registrationno'];
tenanttoken = json['tenanttoken'];
companyname = json['companyname'];
primaryemail = json['primaryemail'];
primarycontact = json['primarycontact'];
categoryid = json['categoryid'];
subcategoryid = json['subcategoryid'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
latitude = json['latitude'];
longitude = json['longitude'];
tenantimage = json['tenantimage'];
tenantinfo = json['tenantinfo'];
paymenttype = json['paymenttype'];
paymode1 = json['paymode1'];
paymode2 = json['paymode2'];
promotion = json['promotion'];
partnerid = json['partnerid'];
minorder = json['minorder'];
applolcationid = json['applolcationid'];
applocation = json['applocation'];
approved = json['approved'];
moduleid = json['moduleid'];
subcategoryname = json['subcategoryname'];
firstname = json['firstname'];
lastname = json['lastname'];
accountname = json['Accountname'];
status = json['status'];
allocationid = json['allocationid'];
allocationtype = json['allocationtype'];
allocationmode = json['allocationmode'];
locationid = json['locationid'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['tenantid'] = this.tenantid;
data['tenantname'] = this.tenantname;
data['locationname'] = this.locationname;
data['tenanttype'] = this.tenanttype;
data['registrationno'] = this.registrationno;
data['tenanttoken'] = this.tenanttoken;
data['companyname'] = this.companyname;
data['primaryemail'] = this.primaryemail;
data['primarycontact'] = this.primarycontact;
data['categoryid'] = this.categoryid;
data['subcategoryid'] = this.subcategoryid;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
data['tenantimage'] = this.tenantimage;
data['tenantinfo'] = this.tenantinfo;
data['paymenttype'] = this.paymenttype;
data['paymode1'] = this.paymode1;
data['paymode2'] = this.paymode2;
data['promotion'] = this.promotion;
data['partnerid'] = this.partnerid;
data['minorder'] = this.minorder;
data['applolcationid'] = this.applolcationid;
data['applocation'] = this.applocation;
data['approved'] = this.approved;
data['moduleid'] = this.moduleid;
data['subcategoryname'] = this.subcategoryname;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['Accountname'] = this.accountname;
data['status'] = this.status;
data['allocationid'] = this.allocationid;
data['allocationtype'] = this.allocationtype;
data['allocationmode'] = this.allocationmode;
data['locationid'] = this.locationid;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class UserUpdateResponse {
int? code;
String? message;
bool? status;
UserUpdateResponse({this.code, this.message, this.status});
UserUpdateResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,156 @@
class UserModelResponse {
int? code;
UserDetails? details;
String? message;
bool? status;
UserModelResponse({this.code, this.details, this.message, this.status});
UserModelResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new UserDetails.fromJson(json['details']) : null;
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
if (this.details != null) {
data['details'] = this.details!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class UserDetails {
int? userid;
String? authname;
int? configid;
int? authmode;
int? roleid;
String? firstname;
String? lastname;
String? password;
String? email;
String? contactno;
String? address;
String? suburb;
String? city;
String? state;
String? postcode;
String? userfcmtoken;
int? pin;
int? partnerid;
int? tenantid;
String? fullname;
String? tenantname;
String? tenantaddress;
String? tenantcity;
String? tenantpostcode;
String? tenantlat;
String? tenantlong;
int? locationid;
String? locationname;
int? applocationid;
UserDetails(
{this.userid,
this.authname,
this.configid,
this.authmode,
this.roleid,
this.firstname,
this.lastname,
this.password,
this.email,
this.contactno,
this.address,
this.suburb,
this.city,
this.state,
this.postcode,
this.userfcmtoken,
this.pin,
this.partnerid,
this.tenantid,
this.fullname,
this.tenantname,
this.tenantaddress,
this.tenantcity,
this.tenantpostcode,
this.tenantlat,
this.tenantlong,
this.locationid,
this.locationname,
this.applocationid});
UserDetails.fromJson(Map<String, dynamic> json) {
userid = json['userid'];
authname = json['authname'];
configid = json['configid'];
authmode = json['authmode'];
roleid = json['roleid'];
firstname = json['firstname'];
lastname = json['lastname'];
password = json['password'];
email = json['email'];
contactno = json['contactno'];
address = json['address'];
suburb = json['suburb'];
city = json['city'];
state = json['state'];
postcode = json['postcode'];
userfcmtoken = json['userfcmtoken'];
pin = json['pin'];
partnerid = json['partnerid'];
tenantid = json['tenantid'];
fullname = json['fullname'];
tenantname = json['tenantname'];
tenantaddress = json['tenantaddress'];
tenantcity = json['tenantcity'];
tenantpostcode = json['tenantpostcode'];
tenantlat = json['tenantlat'];
tenantlong = json['tenantlong'];
locationid = json['locationid'];
locationname = json['locationname'];
applocationid = json['applocationid'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['userid'] = this.userid;
data['authname'] = this.authname;
data['configid'] = this.configid;
data['authmode'] = this.authmode;
data['roleid'] = this.roleid;
data['firstname'] = this.firstname;
data['lastname'] = this.lastname;
data['password'] = this.password;
data['email'] = this.email;
data['contactno'] = this.contactno;
data['address'] = this.address;
data['suburb'] = this.suburb;
data['city'] = this.city;
data['state'] = this.state;
data['postcode'] = this.postcode;
data['userfcmtoken'] = this.userfcmtoken;
data['pin'] = this.pin;
data['partnerid'] = this.partnerid;
data['tenantid'] = this.tenantid;
data['fullname'] = this.fullname;
data['tenantname'] = this.tenantname;
data['tenantaddress'] = this.tenantaddress;
data['tenantcity'] = this.tenantcity;
data['tenantpostcode'] = this.tenantpostcode;
data['tenantlat'] = this.tenantlat;
data['tenantlong'] = this.tenantlong;
data['locationid'] = this.locationid;
data['locationname'] = this.locationname;
data['applocationid'] = this.applocationid;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class CreateDeliveryResponse {
int? code;
String? message;
bool? status;
CreateDeliveryResponse({this.code, this.message, this.status});
CreateDeliveryResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,232 @@
import 'dart:convert';
class ProductDetailResponse {
int? code;
List<ProductDetails>? details;
String? message;
Pricedetails? pricedetails;
bool? status;
ProductDetailResponse({
this.code,
this.details,
this.message,
this.pricedetails,
this.status,
});
factory ProductDetailResponse.fromJson(Map<String, dynamic> json) {
return ProductDetailResponse(
code: json['code'] is int ? json['code'] : null,
details: json['details'] != null
? (json['details'] as List)
.map((v) => ProductDetails.fromJson(v as Map<String, dynamic>))
.toList()
: null,
message: json['message'] as String?,
pricedetails: json['pricedetails'] != null
? Pricedetails.fromJson(json['pricedetails'] as Map<String, dynamic>)
: null,
status: json['status'] is bool ? json['status'] : null,
);
}
Map<String, dynamic> toJson() {
return {
'code': code,
'details': details?.map((v) => v.toJson()).toList(),
'message': message,
'pricedetails': pricedetails?.toJson(),
'status': status,
};
}
}
class ProductDetails {
int? orderdetailid;
int? orderheaderid;
int? tenantid;
int? locationid;
int? productid;
String? productname;
String? productdescription;
int? supplyqty;
int? balanceqty;
int? orderqty;
double? price; // ← double
int? unitid;
String? unitname;
int? productaddonid;
int? addontypeid;
int? productmapid;
int? productvariantid;
String? productaddondescription;
int? discountid;
String? discountname;
String? discountcode;
String? discountterms;
int? discountpercentage;
double? discountamount; // ← double
double? landingamount; // ← double
int? taxpercentage;
double? taxamount; // ← double
double? othercharges; // ← double
double? totaltaxamount; // ← double
double? productsumprice; // ← double
String? itemstatus;
String? delivered;
int? orderamount; // ← Note: JSON key is "Orderamount" (capital O)
String? productimage;
ProductDetails({
this.orderdetailid,
this.orderheaderid,
this.tenantid,
this.locationid,
this.productid,
this.productname,
this.productdescription,
this.supplyqty,
this.balanceqty,
this.orderqty,
this.price,
this.unitid,
this.unitname,
this.productaddonid,
this.addontypeid,
this.productmapid,
this.productvariantid,
this.productaddondescription,
this.discountid,
this.discountname,
this.discountcode,
this.discountterms,
this.discountpercentage,
this.discountamount,
this.landingamount,
this.taxpercentage,
this.taxamount,
this.othercharges,
this.totaltaxamount,
this.productsumprice,
this.itemstatus,
this.delivered,
this.orderamount,
this.productimage,
});
factory ProductDetails.fromJson(Map<String, dynamic> json) {
return ProductDetails(
orderdetailid: json['orderdetailid'] is int ? json['orderdetailid'] : null,
orderheaderid: json['orderheaderid'] is int ? json['orderheaderid'] : null,
tenantid: json['tenantid'] is int ? json['tenantid'] : null,
locationid: json['locationid'] is int ? json['locationid'] : null,
productid: json['productid'] is int ? json['productid'] : null,
productname: json['productname'] as String?,
productdescription: json['productdescription'] as String?,
supplyqty: json['supplyqty'] is int ? json['supplyqty'] : null,
balanceqty: json['balanceqty'] is int ? json['balanceqty'] : null,
orderqty: json['orderqty'] is int ? json['orderqty'] : null,
price: _toDouble(json['price']),
unitid: json['unitid'] is int ? json['unitid'] : null,
unitname: json['unitname'] as String?,
productaddonid: json['productaddonid'] is int ? json['productaddonid'] : null,
addontypeid: json['addontypeid'] is int ? json['addontypeid'] : null,
productmapid: json['productmapid'] is int ? json['productmapid'] : null,
productvariantid: json['productvariantid'] is int ? json['productvariantid'] : null,
productaddondescription: json['productaddondescription'] as String?,
discountid: json['discountid'] is int ? json['discountid'] : null,
discountname: json['discountname'] as String?,
discountcode: json['discountcode'] as String?,
discountterms: json['discountterms'] as String?,
discountpercentage: json['discountpercentage'] is int ? json['discountpercentage'] : null,
discountamount: _toDouble(json['discountamount']),
landingamount: _toDouble(json['landingamount']),
taxpercentage: json['taxpercentage'] is int ? json['taxpercentage'] : null,
taxamount: _toDouble(json['taxamount']),
othercharges: _toDouble(json['othercharges']),
totaltaxamount: _toDouble(json['totaltaxamount']),
productsumprice: _toDouble(json['productsumprice']),
itemstatus: json['itemstatus'] as String?,
delivered: json['delivered'] as String?,
orderamount: json['Orderamount'] is int ? json['Orderamount'] : null, // Capital O!
productimage: json['productimage'] as String?,
);
}
Map<String, dynamic> toJson() {
return {
'orderdetailid': orderdetailid,
'orderheaderid': orderheaderid,
'tenantid': tenantid,
'locationid': locationid,
'productid': productid,
'productname': productname,
'productdescription': productdescription,
'supplyqty': supplyqty,
'balanceqty': balanceqty,
'orderqty': orderqty,
'price': price,
'unitid': unitid,
'unitname': unitname,
'productaddonid': productaddonid,
'addontypeid': addontypeid,
'productmapid': productmapid,
'productvariantid': productvariantid,
'productaddondescription': productaddondescription,
'discountid': discountid,
'discountname': discountname,
'discountcode': discountcode,
'discountterms': discountterms,
'discountpercentage': discountpercentage,
'discountamount': discountamount,
'landingamount': landingamount,
'taxpercentage': taxpercentage,
'taxamount': taxamount,
'othercharges': othercharges,
'totaltaxamount': totaltaxamount,
'productsumprice': productsumprice,
'itemstatus': itemstatus,
'delivered': delivered,
'Orderamount': orderamount, // Capital O in JSON
'productimage': productimage,
};
}
// Helper to safely convert int or double → double?
static double? _toDouble(dynamic value) {
if (value == null) return null;
if (value is double) return value;
if (value is int) return value.toDouble();
return null;
}
}
class Pricedetails {
double? orderamount; // ← double
double? totaltaxamount; // ← double
Pricedetails({this.orderamount, this.totaltaxamount});
factory Pricedetails.fromJson(Map<String, dynamic> json) {
return Pricedetails(
orderamount: _toDouble(json['orderamount']),
totaltaxamount: _toDouble(json['totaltaxamount']),
);
}
Map<String, dynamic> toJson() {
return {
'orderamount': orderamount,
'totaltaxamount': totaltaxamount,
};
}
// Reuse helper
static double? _toDouble(dynamic value) {
if (value == null) return null;
if (value is double) return value;
if (value is int) return value.toDouble();
return null;
}
}

View File

@@ -0,0 +1,277 @@
import 'dart:convert';
class GetProducts {
int? code;
List<ProductData>? details; // Changed from 'data' to 'details'
String? message;
bool? status;
GetProducts({this.code, this.details, this.message, this.status});
GetProducts.fromJson(Map<String, dynamic> json) {
code = json['code'];
if (json['details'] != null) {
details = <ProductData>[];
json['details'].forEach((v) {
details!.add(ProductData.fromJson(v));
});
}
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['code'] = code;
if (details != null) {
data['details'] = details!.map((v) => v.toJson()).toList();
}
data['message'] = message;
data['status'] = status;
return data;
}
}
class ProductData {
int? productid;
int? applocationid;
int? productlocationid;
int? tenantid;
int? categoryid;
String? categoryname;
int? subcategoryid;
String? subcategoryname;
String? productname;
String? productimage;
String? productdesc;
String? productunit;
String? unitvalue;
double? productcost;
double? taxamount;
double? taxpercent;
int? producttax;
int? productstock;
int? productcombo;
int? variants;
int? quantity;
int? approve;
String? status;
ProductData({
this.productid,
this.applocationid,
this.productlocationid,
this.tenantid,
this.categoryid,
this.categoryname,
this.subcategoryid,
this.subcategoryname,
this.productname,
this.productimage,
this.productdesc,
this.productunit,
this.unitvalue,
this.productcost,
this.taxamount,
this.taxpercent,
this.producttax,
this.productstock,
this.productcombo,
this.variants,
this.quantity,
this.approve,
this.status,
});
ProductData.fromJson(Map<String, dynamic> json) {
productid = json['productid'];
applocationid = json['applocationid'];
productlocationid = json['productlocationid'];
tenantid = json['tenantid'];
categoryid = json['categoryid'];
categoryname = json['categoryname'] ?? '';
subcategoryid = json['subcategoryid'];
subcategoryname = json['Subcategoryname'] ?? '';
productname = json['productname'];
productimage = json['productimage'];
productdesc = json['productdesc'];
productunit = json['productunit'];
unitvalue = json['unitvalue'];
productcost = json['productcost'] is int
? (json['productcost'] as int).toDouble()
: json['productcost'];
taxamount = json['taxamount']?.toDouble();
taxpercent = json['taxpercent']?.toDouble();
producttax = json['producttax'];
productstock = json['productstock'];
productcombo = json['productcombo'];
variants = json['variants'];
quantity = json['quantity'];
approve = json['approve'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['productid'] = productid;
data['applocationid'] = applocationid;
data['productlocationid'] = productlocationid;
data['tenantid'] = tenantid;
data['categoryid'] = categoryid;
data['categoryname'] = categoryname;
data['subcategoryid'] = subcategoryid;
data['Subcategoryname'] = subcategoryname;
data['productname'] = productname;
data['productimage'] = productimage;
data['productdesc'] = productdesc;
data['productunit'] = productunit;
data['unitvalue'] = unitvalue;
data['productcost'] = productcost;
data['taxamount'] = taxamount;
data['taxpercent'] = taxpercent;
data['producttax'] = producttax;
data['productstock'] = productstock;
data['productcombo'] = productcombo;
data['variants'] = variants;
data['quantity'] = quantity;
data['approve'] = approve;
data['status'] = status;
return data;
}
// Optional: copyWith for immutable updates
ProductData copyWith({
int? productid,
int? applocationid,
int? productlocationid,
int? tenantid,
int? categoryid,
String? categoryname,
int? subcategoryid,
String? subcategoryname,
String? productname,
String? productimage,
String? productdesc,
String? productunit,
String? unitvalue,
double? productcost,
double? taxamount,
double? taxpercent,
int? producttax,
int? productstock,
int? productcombo,
int? variants,
int? quantity,
int? approve,
String? status,
}) {
return ProductData(
productid: productid ?? this.productid,
applocationid: applocationid ?? this.applocationid,
productlocationid: productlocationid ?? this.productlocationid,
tenantid: tenantid ?? this.tenantid,
categoryid: categoryid ?? this.categoryid,
categoryname: categoryname ?? this.categoryname,
subcategoryid: subcategoryid ?? this.subcategoryid,
subcategoryname: subcategoryname ?? this.subcategoryname,
productname: productname ?? this.productname,
productimage: productimage ?? this.productimage,
productdesc: productdesc ?? this.productdesc,
productunit: productunit ?? this.productunit,
unitvalue: unitvalue ?? this.unitvalue,
productcost: productcost ?? this.productcost,
taxamount: taxamount ?? this.taxamount,
taxpercent: taxpercent ?? this.taxpercent,
producttax: producttax ?? this.producttax,
productstock: productstock ?? this.productstock,
productcombo: productcombo ?? this.productcombo,
variants: variants ?? this.variants,
quantity: quantity ?? this.quantity,
approve: approve ?? this.approve,
status: status ?? this.status,
);
}
}
// Keeping `Products` class for backward compatibility (optional)
class Products extends ProductData {
Products({
int? productid,
int? applocationid,
int? productlocationid,
int? tenantid,
int? categoryid,
String? categoryname,
int? subcategoryid,
String? subcategoryname,
String? productname,
String? productimage,
String? productdesc,
String? productunit,
String? unitvalue,
double? productcost,
double? taxamount,
double? taxpercent,
int? producttax,
int? productstock,
int? productcombo,
int? variants,
int? quantity,
int? approve,
String? status,
}) : super(
productid: productid,
applocationid: applocationid,
productlocationid: productlocationid,
tenantid: tenantid,
categoryid: categoryid,
categoryname: categoryname,
subcategoryid: subcategoryid,
subcategoryname: subcategoryname,
productname: productname,
productimage: productimage,
productdesc: productdesc,
productunit: productunit,
unitvalue: unitvalue,
productcost: productcost,
taxamount: taxamount,
taxpercent: taxpercent,
producttax: producttax,
productstock: productstock,
productcombo: productcombo,
variants: variants,
quantity: quantity,
approve: approve,
status: status,
);
factory Products.fromJson(Map<String, dynamic> json) {
return Products(
productid: json['productid'],
applocationid: json['applocationid'],
productlocationid: json['productlocationid'],
tenantid: json['tenantid'],
categoryid: json['categoryid'],
categoryname: json['categoryname'] ?? '',
subcategoryid: json['subcategoryid'],
subcategoryname: json['Subcategoryname'] ?? '',
productname: json['productname'],
productimage: json['productimage'],
productdesc: json['productdesc'],
productunit: json['productunit'],
unitvalue: json['unitvalue'],
productcost: json['productcost'] is int
? (json['productcost'] as int).toDouble()
: json['productcost'],
taxamount: json['taxamount']?.toDouble(),
taxpercent: json['taxpercent']?.toDouble(),
producttax: json['producttax'],
productstock: json['productstock'],
productcombo: json['productcombo'],
variants: json['variants'],
quantity: json['quantity'],
approve: json['approve'],
status: json['status'],
);
}
}

View File

@@ -0,0 +1,21 @@
class ProductUpdateResponse {
int? code;
String? message;
bool? status;
ProductUpdateResponse({this.code, this.message, this.status});
ProductUpdateResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}

View File

@@ -0,0 +1,21 @@
class UpdateDeliveryResponse {
int? code;
String? message;
bool? status;
UpdateDeliveryResponse({this.code, this.message, this.status});
UpdateDeliveryResponse.fromJson(Map<String, dynamic> json) {
code = json['code'];
message = json['message'];
status = json['status'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}