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,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;
}
}

View File

@@ -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;
}
}

View 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;
}
}

View 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;
}
}