You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/models/pharmacies_items_request_mo...

69 lines
2.0 KiB
Dart

6 years ago
/*
*@author: Ibrahim Albitar
*@Date:27/4/2020
*@param:
*@return:
*@desc:
*/
6 years ago
6 years ago
class PharmaciesItemsRequestModel {
6 years ago
String pHRItemName;
int pageIndex = 0;
int pageSize = 20;
double versionID = 5.2;
int channel = 3;
int languageID = 2;
String iPAdress = "10.20.10.20";
String generalid = "Cs2020@2016\$2958";
int patientOutSA = 0;
String sessionID = "KvFJENeAUCxyVdIfEkHw";
bool isDentalAllowedBackend = false;
int deviceTypeID = 2;
6 years ago
PharmaciesItemsRequestModel(
6 years ago
{this.pHRItemName,
this.pageIndex = 0,
this.pageSize = 20,
6 years ago
this.versionID = 5.2,
6 years ago
this.channel = 3,
this.languageID = 2,
this.iPAdress = "10.20.10.20",
this.generalid = "Cs2020@2016\$2958",
this.patientOutSA = 0,
6 years ago
this.sessionID = "KvFJENeAUCxyVdIfEkHw",
6 years ago
this.isDentalAllowedBackend = false,
this.deviceTypeID = 2});
6 years ago
PharmaciesItemsRequestModel.fromJson(Map<String, dynamic> json) {
6 years ago
pHRItemName = json['PHR_itemName'];
pageIndex = json['PageIndex'];
pageSize = json['PageSize'];
6 years ago
versionID = json['VersionID'];
6 years ago
channel = json['Channel'];
languageID = json['LanguageID'];
iPAdress = json['IPAdress'];
generalid = json['generalid'];
6 years ago
patientOutSA = json['PatientOutSA'];
6 years ago
sessionID = json['SessionID'];
isDentalAllowedBackend = json['isDentalAllowedBackend'];
deviceTypeID = json['DeviceTypeID'];
6 years ago
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
6 years ago
data['PHR_itemName'] = this.pHRItemName;
data['PageIndex'] = this.pageIndex;
data['PageSize'] = this.pageSize;
6 years ago
data['VersionID'] = this.versionID;
6 years ago
data['Channel'] = this.channel;
data['LanguageID'] = this.languageID;
data['IPAdress'] = this.iPAdress;
data['generalid'] = this.generalid;
6 years ago
data['PatientOutSA'] = this.patientOutSA;
6 years ago
data['SessionID'] = this.sessionID;
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
data['DeviceTypeID'] = this.deviceTypeID;
6 years ago
return data;
}
6 years ago
}