import 'dart:convert';

class GetUserMobileDeviceData {
  int? patientMobileNumber;
  String? mobileNo;
  String? deviceToken;
  bool? projectOutSa;
  int? loginType;
  String? zipCode;
  bool? isRegister;
  String? logInTokenId;
  int? searchType;
  int? patientId;
  String? nationalId;
  String? patientIdentificationId;
  int? otpSendType;
  int? languageId;
  double? versionId;
  int? channel;
  String? ipAdress;
  String? generalid;
  int? patientOutSa;
  bool? isDentalAllowedBackend;
  int? deviceTypeId;
  double? latitude;
  double? longitude;
  int? patientType;

  GetUserMobileDeviceData({
    this.patientMobileNumber,
    this.mobileNo,
    this.deviceToken,
    this.projectOutSa,
    this.loginType,
    this.zipCode,
    this.isRegister,
    this.logInTokenId,
    this.searchType,
    this.patientId,
    this.nationalId,
    this.patientIdentificationId,
    this.otpSendType,
    this.languageId,
    this.versionId,
    this.channel,
    this.ipAdress,
    this.generalid,
    this.patientOutSa,
    this.isDentalAllowedBackend,
    this.deviceTypeId,
    this.latitude,
    this.longitude,
    this.patientType,
  });

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

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

  factory GetUserMobileDeviceData.fromJson(Map<String, dynamic> json) => GetUserMobileDeviceData(
    patientMobileNumber: json["PatientMobileNumber"],
    mobileNo: json["MobileNo"],
    deviceToken: json["DeviceToken"],
    projectOutSa: json["ProjectOutSA"],
    loginType: json["LoginType"],
    zipCode: json["ZipCode"],
    isRegister: json["isRegister"],
    logInTokenId: json["LogInTokenID"],
    searchType: json["SearchType"],
    patientId: json["PatientID"],
    nationalId: json["NationalID"],
    patientIdentificationId: json["PatientIdentificationID"],
    otpSendType: json["OTP_SendType"],
    languageId: json["LanguageID"],
    versionId: json["VersionID"]?.toDouble(),
    channel: json["Channel"],
    ipAdress: json["IPAdress"],
    generalid: json["generalid"],
    patientOutSa: json["PatientOutSA"],
    isDentalAllowedBackend: json["isDentalAllowedBackend"],
    deviceTypeId: json["DeviceTypeID"],
    latitude: json["Latitude"],
    longitude: json["Longitude"],
    patientType: json["PatientType"],
  );

  Map<String, dynamic> toJson() => {
    "PatientMobileNumber": patientMobileNumber,
    "MobileNo": mobileNo,
    "DeviceToken": deviceToken,
    "ProjectOutSA": projectOutSa,
    "LoginType": loginType,
    "ZipCode": zipCode,
    "isRegister": isRegister,
    "LogInTokenID": logInTokenId,
    "SearchType": searchType,
    "PatientID": patientId,
    "NationalID": nationalId,
    "PatientIdentificationID": patientIdentificationId,
    "OTP_SendType": otpSendType,
    "LanguageID": languageId,
    "VersionID": versionId,
    "Channel": channel,
    "IPAdress": ipAdress,
    "generalid": generalid,
    "PatientOutSA": patientOutSa,
    "isDentalAllowedBackend": isDentalAllowedBackend,
    "DeviceTypeID": deviceTypeId,
    "Latitude": latitude,
    "Longitude": longitude,
    "PatientType": patientType,
  };
}
