import 'dart:convert';

class PatientInsertDeviceImei {
  String? setupId;
  int? patientType;
  int? patientId;
  String? firstName;
  String? firstNameN;
  String? lastNameN;
  int? preferredLanguage;
  String? patientIdentificationNo;
  bool? outSa;
  String? identificationNo;
  String? mobileNo;
  String? tokenId;
  String? imei;
  bool? biometricEnabled;
  int? logInTypeId;
  double? versionId;
  int? channel;
  int? languageId;
  String? ipAdress;
  String? generalid;
  int? latitude;
  int? longitude;
  int? deviceTypeId;
  int? patientTypeId;
  int? patientOutSa;
  String? sessionId;
  String? lastName;
  String? zipCode;

  PatientInsertDeviceImei({
    this.setupId,
    this.patientType,
    this.patientId,
    this.firstName,
    this.firstNameN,
    this.lastNameN,
    this.preferredLanguage,
    this.patientIdentificationNo,
    this.outSa,
    this.identificationNo,
    this.mobileNo,
    this.tokenId,
    this.imei,
    this.biometricEnabled,
    this.logInTypeId,
    this.versionId,
    this.channel,
    this.languageId,
    this.ipAdress,
    this.generalid,
    this.latitude,
    this.longitude,
    this.deviceTypeId,
    this.patientTypeId,
    this.patientOutSa,
    this.sessionId,
    this.lastName,
    this.zipCode,
  });

  factory PatientInsertDeviceImei.fromRawJson(String str) => PatientInsertDeviceImei.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory PatientInsertDeviceImei.fromJson(Map<String, dynamic> json) => PatientInsertDeviceImei(
    setupId: json["SetupID"],
    patientType: json["PatientType"],
    patientId: json["PatientID"],
    firstName: json["FirstName"],
    firstNameN: json["FirstNameN"],
    lastNameN: json["LastNameN"],
    preferredLanguage: json["PreferredLanguage"],
    patientIdentificationNo: json["PatientIdentificationNo"],
    outSa: json["OutSA"],
    identificationNo: json["IdentificationNo"],
    mobileNo: json["MobileNo"],
    tokenId: json["TokenID"],
    imei: json["IMEI"],
    biometricEnabled: json["BiometricEnabled"],
    logInTypeId: json["LogInTypeID"],
    versionId: json["VersionID"]?.toDouble(),
    channel: json["Channel"],
    languageId: json["LanguageID"],
    ipAdress: json["IPAdress"],
    generalid: json["generalid"],
    latitude: json["Latitude"],
    longitude: json["Longitude"],
    deviceTypeId: json["DeviceTypeID"],
    patientTypeId: json["PatientTypeID"],
    patientOutSa: json["PatientOutSA"],
    sessionId: json["SessionID"],
    lastName: json["LastName"],
    zipCode: json["ZipCode"],

  );

  Map<String, dynamic> toJson() => {
    "SetupID": setupId,
    "PatientType": patientType,
    "PatientID": patientId,
    "FirstName": firstName,
    "FirstNameN": firstNameN,
    "LastNameN": lastNameN,
    "PreferredLanguage": preferredLanguage,
    "PatientIdentificationNo": patientIdentificationNo,
    "OutSA": outSa,
    "IdentificationNo": identificationNo,
    "MobileNo": mobileNo,
    "TokenID": tokenId,
    "IMEI": imei,
    "BiometricEnabled": biometricEnabled,
    "LogInTypeID": logInTypeId,
    "VersionID": versionId,
    "Channel": channel,
    "LanguageID": languageId,
    "IPAdress": ipAdress,
    "generalid": generalid,
    "Latitude": latitude,
    "Longitude": longitude,
    "DeviceTypeID": deviceTypeId,
    "PatientTypeID": patientTypeId,
    "PatientOutSA": patientOutSa,
    "SessionID": sessionId,
    "LastName": lastName,
    "ZipCode": zipCode,
  };
}
