/* 
 *@author: Ibrahim Albitar 
 *@Date:27/4/2020  
 *@param: 
 *@return:
 *@desc:
 */

class PharmaciesItemsRequestModel {
  String pHRItemName;
  int pageIndex = 0;
  int pageSize = 20;
  double versionID = 5.3;
  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;

  PharmaciesItemsRequestModel(
      {this.pHRItemName,
      this.pageIndex = 0,
      this.pageSize = 20,
      this.versionID = 5.3,
      this.channel = 3,
      this.languageID = 2,
      this.iPAdress = "10.20.10.20",
      this.generalid = "Cs2020@2016\$2958",
      this.patientOutSA = 0,
      this.sessionID = "KvFJENeAUCxyVdIfEkHw",
      this.isDentalAllowedBackend = false,
      this.deviceTypeID = 2});

  PharmaciesItemsRequestModel.fromJson(Map<String, dynamic> json) {
    pHRItemName = json['PHR_itemName'];
    pageIndex = json['PageIndex'];
    pageSize = json['PageSize'];
    versionID = json['VersionID'];
    channel = json['Channel'];
    languageID = json['LanguageID'];
    iPAdress = json['IPAdress'];
    generalid = json['generalid'];
    patientOutSA = json['PatientOutSA'];
    sessionID = json['SessionID'];
    isDentalAllowedBackend = json['isDentalAllowedBackend'];
    deviceTypeID = json['DeviceTypeID'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['PHR_itemName'] = this.pHRItemName;
    data['PageIndex'] = this.pageIndex;
    data['PageSize'] = this.pageSize;
    data['VersionID'] = this.versionID;
    data['Channel'] = this.channel;
    data['LanguageID'] = this.languageID;
    data['IPAdress'] = this.iPAdress;
    data['generalid'] = this.generalid;
    data['PatientOutSA'] = this.patientOutSA;
    data['SessionID'] = this.sessionID;
    data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
    data['DeviceTypeID'] = this.deviceTypeID;
    return data;
  }
}
