second commit
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
class CreateDeliveryAddress {
|
||||
int? locationid;
|
||||
int? customerid;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
String? doorno;
|
||||
String? landmark;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
int? primaryaddress;
|
||||
|
||||
CreateDeliveryAddress(
|
||||
{this.locationid,
|
||||
this.customerid,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.doorno,
|
||||
this.landmark,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.primaryaddress});
|
||||
|
||||
CreateDeliveryAddress.fromJson(Map<String, dynamic> json) {
|
||||
locationid = json['locationid'];
|
||||
customerid = json['customerid'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
doorno = json['doorno'];
|
||||
landmark = json['landmark'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
primaryaddress = json['defaultaddress'];
|
||||
}
|
||||
|
||||
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['postcode'] = this.postcode;
|
||||
data['doorno'] = this.doorno;
|
||||
data['landmark'] = this.landmark;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['defaultaddress'] = this.primaryaddress;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,303 @@
|
||||
class CreateTenantUser {
|
||||
int? tenantid;
|
||||
int? partnerid;
|
||||
int? configid;
|
||||
String? tenantname;
|
||||
String? tenanttype;
|
||||
String? registrationno;
|
||||
String? devicetype;
|
||||
String? deviceid;
|
||||
String? tenanttoken;
|
||||
String? companyname;
|
||||
String? firstname;
|
||||
String? primaryemail;
|
||||
String? primarycontact;
|
||||
int? categoryid;
|
||||
int? subcategoryid;
|
||||
int? moduleid;
|
||||
int? allocationid;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? state;
|
||||
String? city;
|
||||
String? postcode;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
String? tenantimage;
|
||||
int? applocationid;
|
||||
int? approved;
|
||||
int? roleid;
|
||||
Tenantlocations? tenantlocations;
|
||||
Tenantsubscriptions? tenantsubscriptions;
|
||||
|
||||
CreateTenantUser(
|
||||
{this.tenantid,
|
||||
this.partnerid,
|
||||
this.configid,
|
||||
this.tenantname,
|
||||
this.tenanttype,
|
||||
this.registrationno,
|
||||
this.devicetype,
|
||||
this.deviceid,
|
||||
this.tenanttoken,
|
||||
this.companyname,
|
||||
this.firstname,
|
||||
this.primaryemail,
|
||||
this.primarycontact,
|
||||
this.categoryid,
|
||||
this.subcategoryid,
|
||||
this.moduleid,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.state,
|
||||
this.city,
|
||||
this.postcode,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.applocationid,
|
||||
this.approved,
|
||||
this.roleid,
|
||||
this.tenantlocations,
|
||||
this.tenantsubscriptions,
|
||||
this.allocationid,
|
||||
this.tenantimage,
|
||||
});
|
||||
|
||||
CreateTenantUser.fromJson(Map<String, dynamic> json) {
|
||||
tenantid = json['tenantid'];
|
||||
partnerid = json['partnerid'];
|
||||
configid = json['configid'];
|
||||
tenantname = json['tenantname'];
|
||||
tenanttype = json['tenanttype'];
|
||||
registrationno = json['registrationno'];
|
||||
devicetype = json['devicetype'];
|
||||
deviceid = json['deviceid'];
|
||||
tenanttoken = json['tenanttoken'];
|
||||
companyname = json['companyname'];
|
||||
firstname = json['firstname'];
|
||||
primaryemail = json['primaryemail'];
|
||||
primarycontact = json['primarycontact'];
|
||||
categoryid = json['categoryid'];
|
||||
subcategoryid = json['subcategoryid'];
|
||||
moduleid = json['moduleid'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
state = json['state'];
|
||||
city = json['city'];
|
||||
postcode = json['postcode'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
applocationid = json['applocationid'];
|
||||
approved = json['approved'];
|
||||
allocationid = json['allocationid'];
|
||||
roleid = json['roleid'];
|
||||
tenantimage = json['tenantimage'];
|
||||
tenantlocations = json['tenantlocations'] != null
|
||||
? new Tenantlocations.fromJson(json['tenantlocations'])
|
||||
: null;
|
||||
tenantsubscriptions = json['tenantsubscriptions'] != null
|
||||
? new Tenantsubscriptions.fromJson(json['tenantsubscriptions'])
|
||||
: null;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['configid'] = this.configid;
|
||||
data['tenantname'] = this.tenantname;
|
||||
data['tenanttype'] = this.tenanttype;
|
||||
data['registrationno'] = this.registrationno;
|
||||
data['devicetype'] = this.devicetype;
|
||||
data['deviceid'] = this.deviceid;
|
||||
data['tenanttoken'] = this.tenanttoken;
|
||||
data['companyname'] = this.companyname;
|
||||
data['firstname'] = this.firstname;
|
||||
data['primaryemail'] = this.primaryemail;
|
||||
data['primarycontact'] = this.primarycontact;
|
||||
data['categoryid'] = this.categoryid;
|
||||
data['subcategoryid'] = this.subcategoryid;
|
||||
data['moduleid'] = this.moduleid;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['state'] = this.state;
|
||||
data['city'] = this.city;
|
||||
data['postcode'] = this.postcode;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['approved'] = this.approved;
|
||||
data['allocationid'] = this.allocationid;
|
||||
data['roleid'] = this.roleid;
|
||||
data['tenantimage'] = this.tenantimage;
|
||||
if (this.tenantlocations != null) {
|
||||
data['tenantlocations'] = this.tenantlocations!.toJson();
|
||||
}
|
||||
if (this.tenantsubscriptions != null) {
|
||||
data['tenantsubscriptions'] = this.tenantsubscriptions!.toJson();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Tenantlocations {
|
||||
int? locationid;
|
||||
int? applocationid;
|
||||
int? tenantid;
|
||||
int? moduleid;
|
||||
String? locationname;
|
||||
String? email;
|
||||
String? contactno;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? state;
|
||||
String? city;
|
||||
String? postcode;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
int? partnerid;
|
||||
String? opentime;
|
||||
String? closetime;
|
||||
int? deliverytype;
|
||||
int? deliverymins;
|
||||
int? cancelsecs;
|
||||
|
||||
Tenantlocations(
|
||||
{this.locationid,
|
||||
this.applocationid,
|
||||
this.tenantid,
|
||||
this.moduleid,
|
||||
this.locationname,
|
||||
this.email,
|
||||
this.contactno,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.state,
|
||||
this.city,
|
||||
this.postcode,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.partnerid,
|
||||
this.opentime,
|
||||
this.closetime,
|
||||
this.deliverytype,
|
||||
this.deliverymins,
|
||||
this.cancelsecs});
|
||||
|
||||
Tenantlocations.fromJson(Map<String, dynamic> json) {
|
||||
locationid = json['locationid'];
|
||||
applocationid = json['applocationid'];
|
||||
tenantid = json['tenantid'];
|
||||
moduleid = json['moduleid'];
|
||||
locationname = json['locationname'];
|
||||
email = json['email'];
|
||||
contactno = json['contactno'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
state = json['state'];
|
||||
city = json['city'];
|
||||
postcode = json['postcode'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
partnerid = json['partnerid'];
|
||||
opentime = json['opentime'];
|
||||
closetime = json['closetime'];
|
||||
deliverytype = json['deliverytype'];
|
||||
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['email'] = this.email;
|
||||
data['contactno'] = this.contactno;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['state'] = this.state;
|
||||
data['city'] = this.city;
|
||||
data['postcode'] = this.postcode;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['opentime'] = this.opentime;
|
||||
data['closetime'] = this.closetime;
|
||||
data['deliverytype'] = this.deliverytype;
|
||||
data['deliverymins'] = this.deliverymins;
|
||||
data['cancelsecs'] = this.cancelsecs;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Tenantsubscriptions {
|
||||
int? subscriptionid;
|
||||
int? tenantid;
|
||||
String? transactiondate;
|
||||
int? moduleid;
|
||||
int? applocationid;
|
||||
int? categoryid;
|
||||
int? subcategoryid;
|
||||
String? validitydate;
|
||||
double? subscriptionprice;
|
||||
int? quantity;
|
||||
double? taxamount;
|
||||
int? taxpercent;
|
||||
double? totalamount;
|
||||
int? paymentstatus;
|
||||
|
||||
Tenantsubscriptions(
|
||||
{this.subscriptionid,
|
||||
this.tenantid,
|
||||
this.transactiondate,
|
||||
this.moduleid,
|
||||
this.applocationid,
|
||||
this.categoryid,
|
||||
this.subcategoryid,
|
||||
this.validitydate,
|
||||
this.subscriptionprice,
|
||||
this.quantity,
|
||||
this.taxamount,
|
||||
this.taxpercent,
|
||||
this.totalamount,
|
||||
this.paymentstatus});
|
||||
|
||||
Tenantsubscriptions.fromJson(Map<String, dynamic> json) {
|
||||
subscriptionid = json['subscriptionid'];
|
||||
tenantid = json['tenantid'];
|
||||
transactiondate = json['transactiondate'];
|
||||
moduleid = json['moduleid'];
|
||||
applocationid = json['applocationid'];
|
||||
categoryid = json['categoryid'];
|
||||
subcategoryid = json['subcategoryid'];
|
||||
validitydate = json['validitydate'];
|
||||
subscriptionprice = json['subscriptionprice'].toDouble();
|
||||
quantity = json['quantity'];
|
||||
taxamount = json['taxamount'].toDouble();
|
||||
taxpercent = json['taxpercent'];
|
||||
totalamount = json['totalamount'].toDouble();
|
||||
paymentstatus = json['paymentstatus'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['subscriptionid'] = this.subscriptionid;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['transactiondate'] = this.transactiondate;
|
||||
data['moduleid'] = this.moduleid;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['categoryid'] = this.categoryid;
|
||||
data['subcategoryid'] = this.subcategoryid;
|
||||
data['validitydate'] = this.validitydate;
|
||||
data['subscriptionprice'] = this.subscriptionprice;
|
||||
data['quantity'] = this.quantity;
|
||||
data['taxamount'] = this.taxamount;
|
||||
data['taxpercent'] = this.taxpercent;
|
||||
data['totalamount'] = this.totalamount;
|
||||
data['paymentstatus'] = this.paymentstatus;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
32
lib/Model/Request/Authentication/Loginrequest.dart
Normal file
32
lib/Model/Request/Authentication/Loginrequest.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
class LoginRequest {
|
||||
String? contactno;
|
||||
int? configid;
|
||||
String? userfcmtoken;
|
||||
String? devicetype;
|
||||
String? deviceid;
|
||||
|
||||
LoginRequest(
|
||||
{this.contactno,
|
||||
this.configid,
|
||||
this.userfcmtoken,
|
||||
this.devicetype,
|
||||
this.deviceid});
|
||||
|
||||
LoginRequest.fromJson(Map<String, dynamic> json) {
|
||||
contactno = json['contactno'];
|
||||
configid = json['configid'];
|
||||
userfcmtoken = json['userfcmtoken'];
|
||||
devicetype = json['devicetype'];
|
||||
deviceid = json['deviceid'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['contactno'] = this.contactno;
|
||||
data['configid'] = this.configid;
|
||||
data['userfcmtoken'] = this.userfcmtoken;
|
||||
data['devicetype'] = this.devicetype;
|
||||
data['deviceid'] = this.deviceid;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
66
lib/Model/Request/Authentication/Sms/Smsrequest.dart
Normal file
66
lib/Model/Request/Authentication/Sms/Smsrequest.dart
Normal file
@@ -0,0 +1,66 @@
|
||||
class SmsRequest {
|
||||
String? locale;
|
||||
int? channelTimeout;
|
||||
// String? clientRef;
|
||||
int? codeLength;
|
||||
String? code;
|
||||
String? brand;
|
||||
List<Workflow>? workflow;
|
||||
|
||||
SmsRequest(
|
||||
{this.locale,
|
||||
this.channelTimeout,
|
||||
// this.clientRef,
|
||||
this.codeLength,
|
||||
this.code,
|
||||
this.brand,
|
||||
this.workflow});
|
||||
|
||||
SmsRequest.fromJson(Map<String, dynamic> json) {
|
||||
locale = json['locale'];
|
||||
channelTimeout = json['channel_timeout'];
|
||||
// clientRef = json['client_ref'];
|
||||
codeLength = json['code_length'];
|
||||
code = json['code'];
|
||||
brand = json['brand'];
|
||||
if (json['workflow'] != null) {
|
||||
workflow = <Workflow>[];
|
||||
json['workflow'].forEach((v) {
|
||||
workflow!.add(new Workflow.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['locale'] = this.locale;
|
||||
data['channel_timeout'] = this.channelTimeout;
|
||||
// data['client_ref'] = this.clientRef;
|
||||
data['code_length'] = this.codeLength;
|
||||
data['code'] = this.code;
|
||||
data['brand'] = this.brand;
|
||||
if (this.workflow != null) {
|
||||
data['workflow'] = this.workflow!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Workflow {
|
||||
String? channel;
|
||||
String? to;
|
||||
|
||||
Workflow({this.channel, this.to});
|
||||
|
||||
Workflow.fromJson(Map<String, dynamic> json) {
|
||||
channel = json['channel'];
|
||||
to = json['to'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['channel'] = this.channel;
|
||||
data['to'] = this.to;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
97
lib/Model/Request/Createcustomer/Createcustomerrequest.dart
Normal file
97
lib/Model/Request/Createcustomer/Createcustomerrequest.dart
Normal file
@@ -0,0 +1,97 @@
|
||||
class CreateCustomers {
|
||||
int? customerid;
|
||||
int? configid;
|
||||
int? tenantid;
|
||||
String? firstname;
|
||||
int? applocationid;
|
||||
String? profileimage;
|
||||
String? dialcode;
|
||||
String? contactno;
|
||||
String? devicetype;
|
||||
String? deviceid;
|
||||
String? customertoken;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
String? landmark;
|
||||
String? doorno;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
int? primaryaddress;
|
||||
|
||||
CreateCustomers(
|
||||
{this.customerid,
|
||||
this.configid,
|
||||
this.tenantid,
|
||||
this.firstname,
|
||||
this.applocationid,
|
||||
this.profileimage,
|
||||
this.dialcode,
|
||||
this.contactno,
|
||||
this.devicetype,
|
||||
this.deviceid,
|
||||
this.customertoken,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.landmark,
|
||||
this.doorno,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.primaryaddress
|
||||
});
|
||||
|
||||
CreateCustomers.fromJson(Map<String, dynamic> json) {
|
||||
customerid = json['customerid'];
|
||||
configid = json['configid'];
|
||||
tenantid = json['tenantid'];
|
||||
firstname = json['firstname'];
|
||||
applocationid = json['applocationid'];
|
||||
profileimage = json['profileimage'];
|
||||
dialcode = json['dialcode'];
|
||||
contactno = json['contactno'];
|
||||
devicetype = json['devicetype'];
|
||||
deviceid = json['deviceid'];
|
||||
customertoken = json['customertoken'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
landmark = json['landmark'];
|
||||
doorno = json['doorno'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
primaryaddress = json['primaryaddress'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['customerid'] = this.customerid;
|
||||
data['configid'] = this.configid;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['firstname'] = this.firstname;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['profileimage'] = this.profileimage;
|
||||
data['dialcode'] = this.dialcode;
|
||||
data['contactno'] = this.contactno;
|
||||
data['devicetype'] = this.devicetype;
|
||||
data['deviceid'] = this.deviceid;
|
||||
data['customertoken'] = this.customertoken;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['postcode'] = this.postcode;
|
||||
data['landmark'] = this.landmark;
|
||||
data['doorno'] = this.doorno;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['primaryaddress'] = this.primaryaddress;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
464
lib/Model/Request/Createorder/Createorderrequest.dart
Normal file
464
lib/Model/Request/Createorder/Createorderrequest.dart
Normal file
@@ -0,0 +1,464 @@
|
||||
class CreateOrder {
|
||||
Orders? orders;
|
||||
Pickup? pickup;
|
||||
Drop? drop;
|
||||
|
||||
CreateOrder({this.orders, this.pickup, this.drop});
|
||||
|
||||
CreateOrder.fromJson(Map<String, dynamic> json) {
|
||||
orders =
|
||||
json['orders'] != null ? new Orders.fromJson(json['orders']) : null;
|
||||
pickup =
|
||||
json['pickup'] != null ? new Pickup.fromJson(json['pickup']) : null;
|
||||
drop = json['drop'] != null ? new Drop.fromJson(json['drop']) : null;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
if (this.orders != null) {
|
||||
data['orders'] = this.orders!.toJson();
|
||||
}
|
||||
if (this.pickup != null) {
|
||||
data['pickup'] = this.pickup!.toJson();
|
||||
}
|
||||
if (this.drop != null) {
|
||||
data['drop'] = this.drop!.toJson();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Orders {
|
||||
int? orderheaderid;
|
||||
int? tenantid;
|
||||
int? applocationid;
|
||||
int? locationid;
|
||||
int? moduleid;
|
||||
int? categoryid;
|
||||
int? subcategoryid;
|
||||
int? configid;
|
||||
String? orderid;
|
||||
String? orderdate;
|
||||
String? deliverytime;
|
||||
String? deliverytype;
|
||||
String? orderstatus;
|
||||
String? pending;
|
||||
String? processing;
|
||||
String? ready;
|
||||
String? delivered;
|
||||
String? cancellled;
|
||||
int? customerid;
|
||||
String? pickupcustomer;
|
||||
String? pickupcontactno;
|
||||
String? pickuplandmark;
|
||||
String? pickuplocation;
|
||||
String? pickupcity;
|
||||
int? pickuplocationid;
|
||||
String? pickupaddress;
|
||||
String? pickuplat;
|
||||
String? pickuplong;
|
||||
int? deliveryid;
|
||||
String? deliverycustomer;
|
||||
String? deliverycontactno;
|
||||
int? deliverylocationid;
|
||||
String? deliverylat;
|
||||
String? deliverylong;
|
||||
String? deliveryaddress;
|
||||
String? deliverylandmark;
|
||||
String? deliverylocation;
|
||||
String? deliverycity;
|
||||
double? orderamount;
|
||||
double? taxamount;
|
||||
double? ordercharges;
|
||||
double? ordervalue;
|
||||
int? itemcount;
|
||||
int? paymenttype;
|
||||
int? paymentstatus;
|
||||
double? deliverycharge;
|
||||
String? ordernotes;
|
||||
String? kms;
|
||||
int? smsdelivery;
|
||||
String? remarks;
|
||||
int? tenantuserid;
|
||||
int? partneruserid;
|
||||
int? partnerid;
|
||||
|
||||
Orders(
|
||||
{this.orderheaderid,
|
||||
this.tenantid,
|
||||
this.applocationid,
|
||||
this.locationid,
|
||||
this.moduleid,
|
||||
this.categoryid,
|
||||
this.subcategoryid,
|
||||
this.configid,
|
||||
this.orderid,
|
||||
this.orderdate,
|
||||
this.deliverytime,
|
||||
this.deliverytype,
|
||||
this.orderstatus,
|
||||
this.pending,
|
||||
this.processing,
|
||||
this.ready,
|
||||
this.delivered,
|
||||
this.cancellled,
|
||||
this.customerid,
|
||||
this.pickupcustomer,
|
||||
this.pickupcontactno,
|
||||
this.pickuplandmark,
|
||||
this.pickuplocation,
|
||||
this.pickupcity,
|
||||
this.pickuplocationid,
|
||||
this.pickupaddress,
|
||||
this.pickuplat,
|
||||
this.pickuplong,
|
||||
this.deliveryid,
|
||||
this.deliverycustomer,
|
||||
this.deliverycontactno,
|
||||
this.deliverylocationid,
|
||||
this.deliverylat,
|
||||
this.deliverylong,
|
||||
this.deliveryaddress,
|
||||
this.deliverylandmark,
|
||||
this.deliverylocation,
|
||||
this.deliverycity,
|
||||
this.orderamount,
|
||||
this.taxamount,
|
||||
this.ordercharges,
|
||||
this.ordervalue,
|
||||
this.itemcount,
|
||||
this.paymenttype,
|
||||
this.paymentstatus,
|
||||
this.deliverycharge,
|
||||
this.ordernotes,
|
||||
this.kms,
|
||||
this.smsdelivery,
|
||||
this.remarks,
|
||||
this.tenantuserid,
|
||||
this.partneruserid,
|
||||
this.partnerid});
|
||||
|
||||
Orders.fromJson(Map<String, dynamic> json) {
|
||||
orderheaderid = json['orderheaderid'];
|
||||
tenantid = json['tenantid'];
|
||||
applocationid = json['applocationid'];
|
||||
locationid = json['locationid'];
|
||||
moduleid = json['moduleid'];
|
||||
categoryid = json['categoryid'];
|
||||
subcategoryid = json['subcategoryid'];
|
||||
configid = json['configid'];
|
||||
orderid = json['orderid'];
|
||||
orderdate = json['orderdate'];
|
||||
deliverytime = json['deliverytime'];
|
||||
deliverytype = json['deliverytype'];
|
||||
orderstatus = json['orderstatus'];
|
||||
pending = json['pending'];
|
||||
processing = json['processing'];
|
||||
ready = json['ready'];
|
||||
delivered = json['delivered'];
|
||||
cancellled = json['cancellled'];
|
||||
customerid = json['customerid'];
|
||||
pickupcustomer = json['pickupcustomer'];
|
||||
pickupcontactno = json['pickupcontactno'];
|
||||
pickuplandmark = json['pickuplandmark'];
|
||||
pickuplocation = json['pickuplocation'];
|
||||
pickupcity = json['pickupcity'];
|
||||
pickuplocationid = json['pickuplocationid'];
|
||||
pickupaddress = json['pickupaddress'];
|
||||
pickuplat = json['pickuplat'];
|
||||
pickuplong = json['pickuplong'];
|
||||
deliveryid = json['deliveryid'];
|
||||
deliverycustomer = json['deliverycustomer'];
|
||||
deliverycontactno = json['deliverycontactno'];
|
||||
deliverylocationid = json['deliverylocationid'];
|
||||
deliverylat = json['deliverylat'];
|
||||
deliverylong = json['deliverylong'];
|
||||
deliveryaddress = json['deliveryaddress'];
|
||||
deliverylandmark = json['deliverylandmark'];
|
||||
deliverylocation = json['deliverylocation'];
|
||||
deliverycity = json['deliverycity'];
|
||||
orderamount = json['orderamount'].toDouble();
|
||||
taxamount = json['taxamount'].toDouble();
|
||||
ordercharges = json['ordercharges'].toDouble();
|
||||
ordervalue = json['ordervalue'].toDouble();
|
||||
itemcount = json['itemcount'];
|
||||
paymenttype = json['paymenttype'];
|
||||
paymentstatus = json['paymentstatus'];
|
||||
deliverycharge = json['deliverycharge'].toDouble();
|
||||
ordernotes = json['ordernotes'];
|
||||
kms = json['kms'];
|
||||
smsdelivery = json['smsdelivery'];
|
||||
remarks = json['remarks'];
|
||||
tenantuserid = json['tenantuserid'];
|
||||
partneruserid = json['partneruserid'];
|
||||
partnerid = json['partnerid'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['orderheaderid'] = this.orderheaderid;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['locationid'] = this.locationid;
|
||||
data['moduleid'] = this.moduleid;
|
||||
data['categoryid'] = this.categoryid;
|
||||
data['subcategoryid'] = this.subcategoryid;
|
||||
data['configid'] = this.configid;
|
||||
data['orderid'] = this.orderid;
|
||||
data['orderdate'] = this.orderdate;
|
||||
data['deliverytime'] = this.deliverytime;
|
||||
data['deliverytype'] = this.deliverytype;
|
||||
data['orderstatus'] = this.orderstatus;
|
||||
data['pending'] = this.pending;
|
||||
data['processing'] = this.processing;
|
||||
data['ready'] = this.ready;
|
||||
data['delivered'] = this.delivered;
|
||||
data['cancellled'] = this.cancellled;
|
||||
data['customerid'] = this.customerid;
|
||||
data['pickupcustomer'] = this.pickupcustomer;
|
||||
data['pickupcontactno'] = this.pickupcontactno;
|
||||
data['pickuplandmark'] = this.pickuplandmark;
|
||||
data['pickuplocation'] = this.pickuplocation;
|
||||
data['pickupcity'] = this.pickupcity;
|
||||
data['pickuplocationid'] = this.pickuplocationid;
|
||||
data['pickupaddress'] = this.pickupaddress;
|
||||
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['deliverylat'] = this.deliverylat;
|
||||
data['deliverylong'] = this.deliverylong;
|
||||
data['deliveryaddress'] = this.deliveryaddress;
|
||||
data['deliverylandmark'] = this.deliverylandmark;
|
||||
data['deliverylocation'] = this.deliverylocation;
|
||||
data['deliverycity'] = this.deliverycity;
|
||||
data['orderamount'] = this.orderamount;
|
||||
data['taxamount'] = this.taxamount;
|
||||
data['ordercharges'] = this.ordercharges;
|
||||
data['ordervalue'] = this.ordervalue;
|
||||
data['itemcount'] = this.itemcount;
|
||||
data['paymenttype'] = this.paymenttype;
|
||||
data['paymentstatus'] = this.paymentstatus;
|
||||
data['deliverycharge'] = this.deliverycharge;
|
||||
data['ordernotes'] = this.ordernotes;
|
||||
data['kms'] = this.kms;
|
||||
data['smsdelivery'] = this.smsdelivery;
|
||||
data['remarks'] = this.remarks;
|
||||
data['tenantuserid'] = this.tenantuserid;
|
||||
data['partneruserid'] = this.partneruserid;
|
||||
data['partnerid'] = this.partnerid;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Pickup {
|
||||
int? customerid;
|
||||
int? configid;
|
||||
int? locationid;
|
||||
String? firstname;
|
||||
int? applocationid;
|
||||
String? profileimage;
|
||||
String? dialcode;
|
||||
String? contactno;
|
||||
String? devicetype;
|
||||
String? deviceid;
|
||||
String? customertoken;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
String? landmark;
|
||||
String? doorno;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
int? tenantid;
|
||||
String? email;
|
||||
int? primaryaddress;
|
||||
|
||||
Pickup(
|
||||
{this.customerid,
|
||||
this.configid,
|
||||
this.locationid,
|
||||
this.firstname,
|
||||
this.applocationid,
|
||||
this.profileimage,
|
||||
this.dialcode,
|
||||
this.contactno,
|
||||
this.devicetype,
|
||||
this.deviceid,
|
||||
this.customertoken,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.landmark,
|
||||
this.doorno,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.tenantid,
|
||||
this.email,
|
||||
this.primaryaddress});
|
||||
|
||||
Pickup.fromJson(Map<String, dynamic> json) {
|
||||
customerid = json['customerid'];
|
||||
configid = json['configid'];
|
||||
locationid = json['locationid'];
|
||||
firstname = json['firstname'];
|
||||
applocationid = json['applocationid'];
|
||||
profileimage = json['profileimage'];
|
||||
dialcode = json['dialcode'];
|
||||
contactno = json['contactno'];
|
||||
devicetype = json['devicetype'];
|
||||
deviceid = json['deviceid'];
|
||||
customertoken = json['customertoken'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
landmark = json['landmark'];
|
||||
doorno = json['doorno'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
tenantid = json['tenantid'];
|
||||
email = json['email'];
|
||||
primaryaddress = json['primaryaddress'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['customerid'] = this.customerid;
|
||||
data['configid'] = this.configid;
|
||||
data['locationid'] = this.locationid;
|
||||
data['firstname'] = this.firstname;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['profileimage'] = this.profileimage;
|
||||
data['dialcode'] = this.dialcode;
|
||||
data['contactno'] = this.contactno;
|
||||
data['devicetype'] = this.devicetype;
|
||||
data['deviceid'] = this.deviceid;
|
||||
data['customertoken'] = this.customertoken;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['postcode'] = this.postcode;
|
||||
data['landmark'] = this.landmark;
|
||||
data['doorno'] = this.doorno;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['email'] = this.email;
|
||||
data['primaryaddress'] = this.primaryaddress;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Drop {
|
||||
int? customerid;
|
||||
int? configid;
|
||||
int? locationid;
|
||||
String? firstname;
|
||||
int? applocationid;
|
||||
String? profileimage;
|
||||
String? dialcode;
|
||||
String? contactno;
|
||||
String? devicetype;
|
||||
String? deviceid;
|
||||
String? customertoken;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
String? landmark;
|
||||
String? doorno;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
int? tenantid;
|
||||
String? email;
|
||||
int? primaryaddress;
|
||||
|
||||
Drop(
|
||||
{this.customerid,
|
||||
this.configid,
|
||||
this.locationid,
|
||||
this.firstname,
|
||||
this.applocationid,
|
||||
this.profileimage,
|
||||
this.dialcode,
|
||||
this.contactno,
|
||||
this.devicetype,
|
||||
this.deviceid,
|
||||
this.customertoken,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.landmark,
|
||||
this.doorno,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.tenantid,
|
||||
this.email,
|
||||
this.primaryaddress});
|
||||
|
||||
Drop.fromJson(Map<String, dynamic> json) {
|
||||
customerid = json['customerid'];
|
||||
configid = json['configid'];
|
||||
locationid = json['locationid'];
|
||||
firstname = json['firstname'];
|
||||
applocationid = json['applocationid'];
|
||||
profileimage = json['profileimage'];
|
||||
dialcode = json['dialcode'];
|
||||
contactno = json['contactno'];
|
||||
devicetype = json['devicetype'];
|
||||
deviceid = json['deviceid'];
|
||||
customertoken = json['customertoken'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
landmark = json['landmark'];
|
||||
doorno = json['doorno'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
tenantid = json['tenantid'];
|
||||
email = json['email'];
|
||||
primaryaddress = json['primaryaddress'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['customerid'] = this.customerid;
|
||||
data['configid'] = this.configid;
|
||||
data['locationid'] = this.locationid;
|
||||
data['firstname'] = this.firstname;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['profileimage'] = this.profileimage;
|
||||
data['dialcode'] = this.dialcode;
|
||||
data['contactno'] = this.contactno;
|
||||
data['devicetype'] = this.devicetype;
|
||||
data['deviceid'] = this.deviceid;
|
||||
data['customertoken'] = this.customertoken;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['postcode'] = this.postcode;
|
||||
data['landmark'] = this.landmark;
|
||||
data['doorno'] = this.doorno;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['email'] = this.email;
|
||||
data['primaryaddress'] = this.primaryaddress;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
class AddLocation {
|
||||
int? locationid;
|
||||
int? tenantid;
|
||||
int? moduleid;
|
||||
int? applocationid;
|
||||
String? locationname;
|
||||
String? email;
|
||||
String? contactno;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? state;
|
||||
String? city;
|
||||
String? postcode;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
int? partnerid;
|
||||
String? opentime;
|
||||
String? closetime;
|
||||
int? deliverytype;
|
||||
int? deliverymins;
|
||||
int? cancelsecs;
|
||||
|
||||
AddLocation(
|
||||
{this.locationid,
|
||||
this.tenantid,
|
||||
this.moduleid,
|
||||
this.applocationid,
|
||||
this.locationname,
|
||||
this.email,
|
||||
this.contactno,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.state,
|
||||
this.city,
|
||||
this.postcode,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.partnerid,
|
||||
this.opentime,
|
||||
this.closetime,
|
||||
this.deliverytype,
|
||||
this.deliverymins,
|
||||
this.cancelsecs});
|
||||
|
||||
AddLocation.fromJson(Map<String, dynamic> json) {
|
||||
locationid = json['locationid'];
|
||||
tenantid = json['tenantid'];
|
||||
moduleid = json['moduleid'];
|
||||
applocationid = json['applocationid'];
|
||||
locationname = json['locationname'];
|
||||
email = json['email'];
|
||||
contactno = json['contactno'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
state = json['state'];
|
||||
city = json['city'];
|
||||
postcode = json['postcode'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
partnerid = json['partnerid'];
|
||||
opentime = json['opentime'];
|
||||
closetime = json['closetime'];
|
||||
deliverytype = json['deliverytype'];
|
||||
deliverymins = json['deliverymins'];
|
||||
cancelsecs = json['cancelsecs'];
|
||||
}
|
||||
|
||||
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['applocationid'] = this.applocationid;
|
||||
data['locationname'] = this.locationname;
|
||||
data['email'] = this.email;
|
||||
data['contactno'] = this.contactno;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['state'] = this.state;
|
||||
data['city'] = this.city;
|
||||
data['postcode'] = this.postcode;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['opentime'] = this.opentime;
|
||||
data['closetime'] = this.closetime;
|
||||
data['deliverytype'] = this.deliverytype;
|
||||
data['deliverymins'] = this.deliverymins;
|
||||
data['cancelsecs'] = this.cancelsecs;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
class UpdateLocation {
|
||||
int? locationid;
|
||||
int? tenantid;
|
||||
int? moduleid;
|
||||
int? applocationid;
|
||||
String? locationname;
|
||||
String? email;
|
||||
String? contactno;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? state;
|
||||
String? city;
|
||||
String? postcode;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
int? partnerid;
|
||||
String? opentime;
|
||||
String? closetime;
|
||||
int? deliverytype;
|
||||
int? deliverymins;
|
||||
int? cancelsecs;
|
||||
|
||||
UpdateLocation(
|
||||
{this.locationid,
|
||||
this.tenantid,
|
||||
this.moduleid,
|
||||
this.applocationid,
|
||||
this.locationname,
|
||||
this.email,
|
||||
this.contactno,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.state,
|
||||
this.city,
|
||||
this.postcode,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.partnerid,
|
||||
this.opentime,
|
||||
this.closetime,
|
||||
this.deliverytype,
|
||||
this.deliverymins,
|
||||
this.cancelsecs});
|
||||
|
||||
UpdateLocation.fromJson(Map<String, dynamic> json) {
|
||||
locationid = json['locationid'];
|
||||
tenantid = json['tenantid'];
|
||||
moduleid = json['moduleid'];
|
||||
applocationid = json['applocationid'];
|
||||
locationname = json['locationname'];
|
||||
email = json['email'];
|
||||
contactno = json['contactno'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
state = json['state'];
|
||||
city = json['city'];
|
||||
postcode = json['postcode'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
partnerid = json['partnerid'];
|
||||
opentime = json['opentime'];
|
||||
closetime = json['closetime'];
|
||||
deliverytype = json['deliverytype'];
|
||||
deliverymins = json['deliverymins'];
|
||||
cancelsecs = json['cancelsecs'];
|
||||
}
|
||||
|
||||
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['applocationid'] = this.applocationid;
|
||||
data['locationname'] = this.locationname;
|
||||
data['email'] = this.email;
|
||||
data['contactno'] = this.contactno;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['state'] = this.state;
|
||||
data['city'] = this.city;
|
||||
data['postcode'] = this.postcode;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['opentime'] = this.opentime;
|
||||
data['closetime'] = this.closetime;
|
||||
data['deliverytype'] = this.deliverytype;
|
||||
data['deliverymins'] = this.deliverymins;
|
||||
data['cancelsecs'] = this.cancelsecs;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
class RiderNotificationRequest {
|
||||
String? token;
|
||||
NotificationRider? notification;
|
||||
RiderNotificationRequest({this.token, this.notification});
|
||||
RiderNotificationRequest.fromJson(Map<String, dynamic> json) {
|
||||
token = json['token'];
|
||||
notification = json['notification'] != null
|
||||
? new NotificationRider.fromJson(json['notification'])
|
||||
: null;
|
||||
}
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['token'] = this.token;
|
||||
if (this.notification != null) {
|
||||
data['notification'] = this.notification!.toJson();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
class NotificationRider {
|
||||
String? title;
|
||||
String? body;
|
||||
String? sound;
|
||||
String? image;
|
||||
NotificationRider({this.title, this.body, this.sound, this.image});
|
||||
NotificationRider.fromJson(Map<String, dynamic> json) {
|
||||
title = json['title'];
|
||||
body = json['body'];
|
||||
sound = json['sound'];
|
||||
image = json['image'];
|
||||
}
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['title'] = this.title;
|
||||
data['body'] = this.body;
|
||||
data['sound'] = this.sound;
|
||||
data['image'] = this.image;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
69
lib/Model/Request/Notification/Notificationrequest.dart
Normal file
69
lib/Model/Request/Notification/Notificationrequest.dart
Normal file
@@ -0,0 +1,69 @@
|
||||
class NotificationRequest {
|
||||
String? priority;
|
||||
List<String>? registrationIds;
|
||||
Data? data;
|
||||
Notification? notification;
|
||||
|
||||
NotificationRequest(
|
||||
{this.priority, this.registrationIds, this.data, this.notification});
|
||||
|
||||
NotificationRequest.fromJson(Map<String, dynamic> json) {
|
||||
priority = json['priority'];
|
||||
registrationIds = json['registration_ids'].cast<String>();
|
||||
data = json['data'] != null ? new Data.fromJson(json['data']) : null;
|
||||
notification = json['notification'] != null
|
||||
? new Notification.fromJson(json['notification'])
|
||||
: null;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['priority'] = this.priority;
|
||||
data['registration_ids'] = this.registrationIds;
|
||||
if (this.data != null) {
|
||||
data['data'] = this.data!.toJson();
|
||||
}
|
||||
if (this.notification != null) {
|
||||
data['notification'] = this.notification!.toJson();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Data {
|
||||
String? accessid;
|
||||
|
||||
Data({this.accessid});
|
||||
|
||||
Data.fromJson(Map<String, dynamic> json) {
|
||||
accessid = json['accessid'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['accessid'] = this.accessid;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class Notification {
|
||||
String? title;
|
||||
String? body;
|
||||
String? sound;
|
||||
|
||||
Notification({this.title, this.body, this.sound});
|
||||
|
||||
Notification.fromJson(Map<String, dynamic> json) {
|
||||
title = json['title'];
|
||||
body = json['body'];
|
||||
sound = json['sound'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['title'] = this.title;
|
||||
data['body'] = this.body;
|
||||
data['sound'] = this.sound;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
21
lib/Model/Request/Orders/Cancelorderrequest.dart
Normal file
21
lib/Model/Request/Orders/Cancelorderrequest.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
class CancelOrderRequest {
|
||||
int? orderheaderid;
|
||||
String? orderstatus;
|
||||
String? cancelled;
|
||||
|
||||
CancelOrderRequest({this.orderheaderid, this.orderstatus, this.cancelled});
|
||||
|
||||
CancelOrderRequest.fromJson(Map<String, dynamic> json) {
|
||||
orderheaderid = json['orderheaderid'];
|
||||
orderstatus = json['orderstatus'];
|
||||
cancelled = json['cancelled'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['orderheaderid'] = this.orderheaderid;
|
||||
data['orderstatus'] = this.orderstatus;
|
||||
data['cancelled'] = this.cancelled;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
80
lib/Model/Request/Staffs/Addstaffs/Addstaffsrequest.dart
Normal file
80
lib/Model/Request/Staffs/Addstaffs/Addstaffsrequest.dart
Normal file
@@ -0,0 +1,80 @@
|
||||
class CreateStaffRequest {
|
||||
int? userid;
|
||||
String? authname;
|
||||
int? configid;
|
||||
String? contactno;
|
||||
String? firstname;
|
||||
String? lastrname;
|
||||
String? email;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
int? roleid;
|
||||
int? applocationid;
|
||||
int? partnerid;
|
||||
int? tenantid;
|
||||
int? locationid;
|
||||
|
||||
CreateStaffRequest(
|
||||
{this.userid,
|
||||
this.authname,
|
||||
this.configid,
|
||||
this.contactno,
|
||||
this.firstname,
|
||||
this.lastrname,
|
||||
this.email,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.roleid,
|
||||
this.applocationid,
|
||||
this.partnerid,
|
||||
this.tenantid,
|
||||
this.locationid});
|
||||
|
||||
CreateStaffRequest.fromJson(Map<String, dynamic> json) {
|
||||
userid = json['userid'];
|
||||
authname = json['authname'];
|
||||
configid = json['configid'];
|
||||
contactno = json['contactno'];
|
||||
firstname = json['firstname'];
|
||||
lastrname = json['lastrname'];
|
||||
email = json['email'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
roleid = json['roleid'];
|
||||
applocationid = json['applocationid'];
|
||||
partnerid = json['partnerid'];
|
||||
tenantid = json['tenantid'];
|
||||
locationid = json['locationid'];
|
||||
}
|
||||
|
||||
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['contactno'] = this.contactno;
|
||||
data['firstname'] = this.firstname;
|
||||
data['lastrname'] = this.lastrname;
|
||||
data['email'] = this.email;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['postcode'] = this.postcode;
|
||||
data['roleid'] = this.roleid;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['locationid'] = this.locationid;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
80
lib/Model/Request/Staffs/UpdateStaff/Updatestaffrequest.dart
Normal file
80
lib/Model/Request/Staffs/UpdateStaff/Updatestaffrequest.dart
Normal file
@@ -0,0 +1,80 @@
|
||||
class UpdateStaffRequest {
|
||||
int? userid;
|
||||
String? authname;
|
||||
int? configid;
|
||||
String? contactno;
|
||||
String? firstname;
|
||||
String? lastrname;
|
||||
String? email;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
int? roleid;
|
||||
int? applocationid;
|
||||
int? partnerid;
|
||||
int? tenantid;
|
||||
int? locationid;
|
||||
|
||||
UpdateStaffRequest(
|
||||
{this.userid,
|
||||
this.authname,
|
||||
this.configid,
|
||||
this.contactno,
|
||||
this.firstname,
|
||||
this.lastrname,
|
||||
this.email,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.roleid,
|
||||
this.applocationid,
|
||||
this.partnerid,
|
||||
this.tenantid,
|
||||
this.locationid});
|
||||
|
||||
UpdateStaffRequest.fromJson(Map<String, dynamic> json) {
|
||||
userid = json['userid'];
|
||||
authname = json['authname'];
|
||||
configid = json['configid'];
|
||||
contactno = json['contactno'];
|
||||
firstname = json['firstname'];
|
||||
lastrname = json['lastrname'];
|
||||
email = json['email'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
roleid = json['roleid'];
|
||||
applocationid = json['applocationid'];
|
||||
partnerid = json['partnerid'];
|
||||
tenantid = json['tenantid'];
|
||||
locationid = json['locationid'];
|
||||
}
|
||||
|
||||
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['contactno'] = this.contactno;
|
||||
data['firstname'] = this.firstname;
|
||||
data['lastrname'] = this.lastrname;
|
||||
data['email'] = this.email;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['postcode'] = this.postcode;
|
||||
data['roleid'] = this.roleid;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['locationid'] = this.locationid;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
40
lib/Model/Request/User/Updateuser/Updateuserrequest.dart
Normal file
40
lib/Model/Request/User/Updateuser/Updateuserrequest.dart
Normal file
@@ -0,0 +1,40 @@
|
||||
class UserUpdateRequest {
|
||||
int? userid;
|
||||
String? authname;
|
||||
int? configid;
|
||||
String? contactno;
|
||||
String? firstname;
|
||||
String? lastname;
|
||||
String? email;
|
||||
|
||||
UserUpdateRequest(
|
||||
{this.userid,
|
||||
this.authname,
|
||||
this.configid,
|
||||
this.contactno,
|
||||
this.firstname,
|
||||
this.lastname,
|
||||
this.email});
|
||||
|
||||
UserUpdateRequest.fromJson(Map<String, dynamic> json) {
|
||||
userid = json['userid'];
|
||||
authname = json['authname'];
|
||||
configid = json['configid'];
|
||||
contactno = json['contactno'];
|
||||
firstname = json['firstname'];
|
||||
lastname = json['lastname'];
|
||||
email = json['email'];
|
||||
}
|
||||
|
||||
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['contactno'] = this.contactno;
|
||||
data['firstname'] = this.firstname;
|
||||
data['lastname'] = this.lastname;
|
||||
data['email'] = this.email;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
class CreateDelivery {
|
||||
int? deliveryid;
|
||||
int? applocationid;
|
||||
int? partnerid;
|
||||
int? tenantid;
|
||||
int? locationid;
|
||||
int? configid;
|
||||
int? moduleid;
|
||||
int? userid;
|
||||
int? orderheaderid;
|
||||
int? categoryid;
|
||||
int? subcategoryid;
|
||||
String? orderid;
|
||||
String? deliverydate;
|
||||
String? assigntime;
|
||||
int? orderamount;
|
||||
int? itemcount;
|
||||
String? ordernotes;
|
||||
String? orderstatus;
|
||||
int? customerid;
|
||||
String? pickupcustomer;
|
||||
String? pickupcontactno;
|
||||
int? pickuplocationid;
|
||||
String? pickupaddress;
|
||||
String? pickuplocation;
|
||||
String? pickuplat;
|
||||
String? pickuplon;
|
||||
int? deliverycustomerid;
|
||||
String? deliverycustomer;
|
||||
String? deliverycontactno;
|
||||
int? deliverylocationid;
|
||||
String? deliveryaddress;
|
||||
String? deliverylocation;
|
||||
String? droplat;
|
||||
String? droplon;
|
||||
String? kms;
|
||||
double? deliverycharges;
|
||||
int? paymenttype;
|
||||
|
||||
CreateDelivery(
|
||||
{this.deliveryid,
|
||||
this.applocationid,
|
||||
this.partnerid,
|
||||
this.tenantid,
|
||||
this.locationid,
|
||||
this.configid,
|
||||
this.moduleid,
|
||||
this.userid,
|
||||
this.orderheaderid,
|
||||
this.categoryid,
|
||||
this.subcategoryid,
|
||||
this.orderid,
|
||||
this.deliverydate,
|
||||
this.orderamount,
|
||||
this.itemcount,
|
||||
this.ordernotes,
|
||||
this.orderstatus,
|
||||
this.customerid,
|
||||
this.pickupcustomer,
|
||||
this.pickupcontactno,
|
||||
this.pickuplocationid,
|
||||
this.pickupaddress,
|
||||
this.pickuplocation,
|
||||
this.pickuplat,
|
||||
this.pickuplon,
|
||||
this.deliverycustomerid,
|
||||
this.deliverycustomer,
|
||||
this.deliverycontactno,
|
||||
this.deliverylocationid,
|
||||
this.deliveryaddress,
|
||||
this.deliverylocation,
|
||||
this.droplat,
|
||||
this.droplon,
|
||||
this.kms,
|
||||
this.deliverycharges,
|
||||
this.paymenttype,
|
||||
this.assigntime,
|
||||
});
|
||||
|
||||
CreateDelivery.fromJson(Map<String, dynamic> json) {
|
||||
deliveryid = json['deliveryid'];
|
||||
applocationid = json['applocationid'];
|
||||
partnerid = json['Partnerid'];
|
||||
tenantid = json['Tenantid'];
|
||||
locationid = json['Locationid'];
|
||||
configid = json['configid'];
|
||||
moduleid = json['moduleid'];
|
||||
userid = json['userid'];
|
||||
orderheaderid = json['orderheaderid'];
|
||||
categoryid = json['categoryid'];
|
||||
subcategoryid = json['subcategoryid'];
|
||||
orderid = json['orderid'];
|
||||
deliverydate = json['deliverydate'];
|
||||
orderamount = json['orderamount'];
|
||||
itemcount = json['itemcount'];
|
||||
ordernotes = json['ordernotes'];
|
||||
orderstatus = json['orderstatus'];
|
||||
customerid = json['customerid'];
|
||||
pickupcustomer = json['pickupcustomer'];
|
||||
pickupcontactno = json['pickupcontactno'];
|
||||
pickuplocationid = json['pickuplocationid'];
|
||||
pickupaddress = json['pickupaddress'];
|
||||
pickuplocation = json['pickuplocation'];
|
||||
pickuplat = json['pickuplat'];
|
||||
pickuplon = json['pickuplon'];
|
||||
deliverycustomerid = json['deliverycustomerid'];
|
||||
deliverycustomer = json['deliverycustomer'];
|
||||
deliverycontactno = json['deliverycontactno'];
|
||||
deliverylocationid = json['deliverylocationid'];
|
||||
deliveryaddress = json['deliveryaddress'];
|
||||
deliverylocation = json['deliverylocation'];
|
||||
droplat = json['droplat'];
|
||||
droplon = json['droplon'];
|
||||
kms = json['kms'];
|
||||
deliverycharges = json['deliverycharges'];
|
||||
paymenttype = json['paymenttype'];
|
||||
assigntime = json['assigntime'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['deliveryid'] = this.deliveryid;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['Partnerid'] = this.partnerid;
|
||||
data['Tenantid'] = this.tenantid;
|
||||
data['Locationid'] = this.locationid;
|
||||
data['configid'] = this.configid;
|
||||
data['moduleid'] = this.moduleid;
|
||||
data['userid'] = this.userid;
|
||||
data['orderheaderid'] = this.orderheaderid;
|
||||
data['categoryid'] = this.categoryid;
|
||||
data['subcategoryid'] = this.subcategoryid;
|
||||
data['orderid'] = this.orderid;
|
||||
data['deliverydate'] = this.deliverydate;
|
||||
data['orderamount'] = this.orderamount;
|
||||
data['itemcount'] = this.itemcount;
|
||||
data['ordernotes'] = this.ordernotes;
|
||||
data['orderstatus'] = this.orderstatus;
|
||||
data['customerid'] = this.customerid;
|
||||
data['pickupcustomer'] = this.pickupcustomer;
|
||||
data['pickupcontactno'] = this.pickupcontactno;
|
||||
data['pickuplocationid'] = this.pickuplocationid;
|
||||
data['pickupaddress'] = this.pickupaddress;
|
||||
data['pickuplocation'] = this.pickuplocation;
|
||||
data['pickuplat'] = this.pickuplat;
|
||||
data['pickuplon'] = this.pickuplon;
|
||||
data['deliverycustomerid'] = this.deliverycustomerid;
|
||||
data['deliverycustomer'] = this.deliverycustomer;
|
||||
data['deliverycontactno'] = this.deliverycontactno;
|
||||
data['deliverylocationid'] = this.deliverylocationid;
|
||||
data['deliveryaddress'] = this.deliveryaddress;
|
||||
data['deliverylocation'] = this.deliverylocation;
|
||||
data['droplat'] = this.droplat;
|
||||
data['droplon'] = this.droplon;
|
||||
data['kms'] = this.kms;
|
||||
data['deliverycharges'] = this.deliverycharges;
|
||||
data['paymenttype'] = this.paymenttype;
|
||||
data['assigntime'] = this.assigntime;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
18
lib/Model/Request/products/update_product.dart
Normal file
18
lib/Model/Request/products/update_product.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
class ProductUpdateRequest {
|
||||
int? productid;
|
||||
String? productstatus;
|
||||
|
||||
ProductUpdateRequest({this.productid, this.productstatus});
|
||||
|
||||
ProductUpdateRequest.fromJson(Map<String, dynamic> json) {
|
||||
productid = json['productid'];
|
||||
productstatus = json['productstatus'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['productlocationid'] = this.productid;
|
||||
data['status'] = this.productstatus;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
96
lib/Model/Request/update_delivery/update_delivery.dart
Normal file
96
lib/Model/Request/update_delivery/update_delivery.dart
Normal file
@@ -0,0 +1,96 @@
|
||||
class UpdateDeliveryRequest {
|
||||
int? deliveryid;
|
||||
int? userid;
|
||||
int? orderheaderid;
|
||||
int? deliverylocationid;
|
||||
int? smsdelivery;
|
||||
String? orderstatus;
|
||||
String? starttime;
|
||||
String? assigntime;
|
||||
String? arrivaltime;
|
||||
String? pickuptime;
|
||||
String? deliverytime;
|
||||
String? canceltime;
|
||||
String? riderslat;
|
||||
String? riderslon;
|
||||
String? deliverylat;
|
||||
String? deliverylong;
|
||||
String? kms;
|
||||
String? actualkms;
|
||||
double? deliveryamt;
|
||||
String? notes;
|
||||
String? feedback;
|
||||
|
||||
UpdateDeliveryRequest(
|
||||
{this.deliveryid,
|
||||
this.userid,
|
||||
this.orderheaderid,
|
||||
this.deliverylocationid,
|
||||
this.smsdelivery,
|
||||
this.orderstatus,
|
||||
this.starttime,
|
||||
this.assigntime,
|
||||
this.arrivaltime,
|
||||
this.pickuptime,
|
||||
this.deliverytime,
|
||||
this.canceltime,
|
||||
this.riderslat,
|
||||
this.riderslon,
|
||||
this.deliverylat,
|
||||
this.deliverylong,
|
||||
this.kms,
|
||||
this.actualkms,
|
||||
this.deliveryamt,
|
||||
this.notes,
|
||||
this.feedback});
|
||||
|
||||
UpdateDeliveryRequest.fromJson(Map<String, dynamic> json) {
|
||||
deliveryid = json['deliveryid'];
|
||||
userid = json['userid'];
|
||||
orderheaderid = json['orderheaderid'];
|
||||
deliverylocationid = json['deliverylocationid'];
|
||||
smsdelivery = json['smsdelivery'];
|
||||
orderstatus = json['orderstatus'];
|
||||
starttime = json['starttime'];
|
||||
assigntime = json['assigntime'];
|
||||
arrivaltime = json['arrivaltime'];
|
||||
pickuptime = json['pickuptime'];
|
||||
deliverytime = json['deliverytime'];
|
||||
canceltime = json['canceltime'];
|
||||
riderslat = json['riderslat'];
|
||||
riderslon = json['riderslon'];
|
||||
deliverylat = json['deliverylat'];
|
||||
deliverylong = json['deliverylong'];
|
||||
kms = json['kms'];
|
||||
actualkms = json['actualkms'];
|
||||
deliveryamt = json['deliveryamt'];
|
||||
notes = json['notes'];
|
||||
feedback = json['feedback'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['deliveryid'] = this.deliveryid;
|
||||
data['userid'] = this.userid;
|
||||
data['orderheaderid'] = this.orderheaderid;
|
||||
data['deliverylocationid'] = this.deliverylocationid;
|
||||
data['smsdelivery'] = this.smsdelivery;
|
||||
data['orderstatus'] = this.orderstatus;
|
||||
data['starttime'] = this.starttime;
|
||||
data['assigntime'] = this.assigntime;
|
||||
data['arrivaltime'] = this.arrivaltime;
|
||||
data['pickuptime'] = this.pickuptime;
|
||||
data['deliverytime'] = this.deliverytime;
|
||||
data['canceltime'] = this.canceltime;
|
||||
data['riderslat'] = this.riderslat;
|
||||
data['riderslon'] = this.riderslon;
|
||||
data['deliverylat'] = this.deliverylat;
|
||||
data['deliverylong'] = this.deliverylong;
|
||||
data['kms'] = this.kms;
|
||||
data['actualkms'] = this.actualkms;
|
||||
data['deliveryamt'] = this.deliveryamt;
|
||||
data['notes'] = this.notes;
|
||||
data['feedback'] = this.feedback;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user