import 'package:hmg_patient_app/core/enum/Ambulate.dart';

import 'get_all_transportation_method_list_model.dart';

class PatientER {
  double? versionID;
  int? channel;
  int? languageID;
  String? iPAdress;
  String? generalid;
  dynamic patientOutSA;
  String? sessionID;
  bool? isDentalAllowedBackend;
  int? deviceTypeID;
  int? patientID;
  String? tokenID;
  int? patientTypeID;
  int? patientType;
  int? orderServiceID;
  String? patientIdentificationID;
  int? direction;
  bool? haveAppointment;
  int? tripType;
  int? pickupUrgency;
  int? pickupSpot;
  String? pickupDateTime;
  int? transportationMethodId;
  int? selectedAmbulate;
  String? requesterNote;
  int? requesterFileNo;
  String? requesterMobileNo;
  bool? requesterIsOutSA;
  int? isOutPatient;
  String? pickupLocationName;
  String? dropoffLocationName;
  int? projectID;
  int? createdBy;
  int? lineItemNo;
  double? cost;
  double? vAT;
  double? totalPrice;
  String? pickupLocationLattitude;
  String? pickupLocationLongitude;
  String? dropoffLocationLattitude;
  String? dropoffLocationLongitude;
  String? latitude;
  String? longitude;
  String? appointmentNo;
  dynamic appointmentClinicName;
  dynamic appointmentDoctorName;
  dynamic appointmentBranch;
  dynamic appointmentTime;
  PatientERTransportationMethod? patientERTransportationMethod;
  Ambulate? ambulate;
  PatientER(
      {this.versionID,
      this.channel,
      this.languageID,
      this.iPAdress,
      this.generalid,
      this.patientOutSA,
      this.sessionID,
      this.isDentalAllowedBackend,
      this.deviceTypeID,
      this.patientID,
      this.tokenID,
      this.patientTypeID,
      this.patientType,
      this.orderServiceID = 4,
      this.patientIdentificationID,
      this.direction,
      this.haveAppointment,
      this.tripType,
      this.pickupUrgency,
      this.pickupSpot,
      this.pickupDateTime,
      this.transportationMethodId,
      this.selectedAmbulate,
      this.requesterNote,
      this.requesterFileNo,
      this.requesterMobileNo,
      this.requesterIsOutSA,
      this.isOutPatient,
      this.pickupLocationName,
      this.dropoffLocationName,
      this.projectID,
      this.createdBy,
      this.lineItemNo,
      this.cost,
      this.vAT,
      this.totalPrice,
      this.pickupLocationLattitude,
      this.pickupLocationLongitude,
      this.dropoffLocationLattitude,
      this.dropoffLocationLongitude,
      this.latitude,
      this.longitude,
      this.appointmentNo,
      this.appointmentClinicName,
      this.appointmentDoctorName,
      this.appointmentBranch,
      this.appointmentTime,
      this.patientERTransportationMethod,
      this.ambulate});

  PatientER.fromJson(Map<String, dynamic> json) {
    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'];
    patientID = json['PatientID'];
    tokenID = json['TokenID'];
    patientTypeID = json['PatientTypeID'];
    patientType = json['PatientType'];
    orderServiceID = json['OrderServiceID'];
    patientIdentificationID = json['PatientIdentificationID'];
    direction = json['Direction'];
    haveAppointment = json['HaveAppointment'];
    tripType = json['TripType'];
    pickupUrgency = json['PickupUrgency'];
    pickupSpot = json['PickupSpot'];
    pickupDateTime = json['PickupDateTime'];
    transportationMethodId = json['TransportationMethodId'];
    selectedAmbulate = json['SelectedAmbulate'];
    requesterNote = json['RequesterNote'];
    requesterFileNo = json['RequesterFileNo'];
    requesterMobileNo = json['RequesterMobileNo'];
    requesterIsOutSA = json['RequesterIsOutSA'];
    isOutPatient = json['IsOutPatient'];
    pickupLocationName = json['PickupLocationName'];
    dropoffLocationName = json['DropoffLocationName'];
    projectID = json['ProjectID'];
    createdBy = json['CreatedBy'];
    lineItemNo = json['LineItemNo'];
    cost = json['Cost'];
    vAT = json['VAT'];
    totalPrice = json['TotalPrice'];
    pickupLocationLattitude = json['PickupLocationLattitude'];
    pickupLocationLongitude = json['PickupLocationLongitude'];
    dropoffLocationLattitude = json['DropoffLocationLattitude'];
    dropoffLocationLongitude = json['DropoffLocationLongitude'];
    latitude = json['Latitude'];
    longitude = json['Longitude'];
    appointmentNo = json['AppointmentNo'];
    appointmentClinicName = json['AppointmentClinicName'];
    appointmentDoctorName = json['AppointmentDoctorName'];
    appointmentBranch = json['AppointmentBranch'];
    appointmentTime = json['AppointmentTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    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;
    data['PatientID'] = this.patientID.toString();
    data['TokenID'] = this.tokenID;
    data['PatientTypeID'] = this.patientTypeID;
    data['PatientType'] = this.patientType;
    data['OrderServiceID'] = this.orderServiceID;
    data['PatientIdentificationID'] = this.patientIdentificationID;
    data['Direction'] = this.direction;
    data['HaveAppointment'] = this.haveAppointment;
    data['TripType'] = this.tripType;
    data['PickupUrgency'] = this.pickupUrgency;
    data['PickupSpot'] = this.pickupSpot;
    data['PickupDateTime'] = this.pickupDateTime;
    data['TransportationMethodId'] = this.transportationMethodId;
    data['SelectedAmbulate'] = this.selectedAmbulate;
    data['RequesterNote'] = this.requesterNote;
    data['RequesterFileNo'] = this.requesterFileNo;
    data['RequesterMobileNo'] = this.requesterMobileNo;
    data['RequesterIsOutSA'] = this.requesterIsOutSA;
    data['IsOutPatient'] = this.isOutPatient;
    data['PickupLocationName'] = this.pickupLocationName;
    data['DropoffLocationName'] = this.dropoffLocationName;
    data['ProjectID'] = this.projectID;
    data['CreatedBy'] = this.createdBy;
    data['LineItemNo'] = this.lineItemNo;
    data['Cost'] = this.cost;
    data['VAT'] = this.vAT;
    data['TotalPrice'] = this.totalPrice;
    data['PickupLocationLattitude'] = this.pickupLocationLattitude;
    data['PickupLocationLongitude'] = this.pickupLocationLongitude;
    data['DropoffLocationLattitude'] = this.dropoffLocationLattitude;
    data['DropoffLocationLongitude'] = this.dropoffLocationLongitude;
    data['Latitude'] = this.latitude;
    data['Longitude'] = this.longitude;
    data['AppointmentNo'] = this.appointmentNo;
    data['AppointmentClinicName'] = this.appointmentClinicName;
    data['AppointmentDoctorName'] = this.appointmentDoctorName;
    data['AppointmentBranch'] = this.appointmentBranch;
    data['AppointmentTime'] = this.appointmentTime;
    return data;
  }
}
