import 'dart:convert';

class InsertPatientMobileDeviceInfo {
  double? versionId;
  int? channel;
  int? languageId;
  String? ipAdress;
  String? generalid;
  int? patientOutSa;
  bool? isDentalAllowedBackend;
  int? deviceTypeId;
  int? patientId;
  String? tokenId;
  String? voipToken;
  int? patientTypeId;
  int? patientType;
  String? deviceToken;
  String? deviceType;
  String? patientMobileNumber;
  String? nationalId;
  int? gender;
  int? loginType;
  String? macAddress;
  double? latitude;
  double? longitude;
  String? sessionId;

  InsertPatientMobileDeviceInfo({
    this.versionId,
    this.channel,
    this.languageId,
    this.ipAdress,
    this.generalid,
    this.patientOutSa,
    this.isDentalAllowedBackend,
    this.deviceTypeId,
    this.patientId,
    this.tokenId,
    this.voipToken,
    this.patientTypeId,
    this.patientType,
    this.deviceToken,
    this.deviceType,
    this.patientMobileNumber,
    this.nationalId,
    this.gender,
    this.loginType,
    this.macAddress,
    this.latitude,
    this.longitude,
    this.sessionId,
  });

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

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

  factory InsertPatientMobileDeviceInfo.fromJson(Map<String, dynamic> json) => InsertPatientMobileDeviceInfo(
    versionId: json["VersionID"]?.toDouble(),
    channel: json["Channel"],
    languageId: json["LanguageID"],
    ipAdress: json["IPAdress"],
    generalid: json["generalid"],
    patientOutSa: json["PatientOutSA"],
    isDentalAllowedBackend: json["isDentalAllowedBackend"],
    deviceTypeId: json["DeviceTypeID"],
    patientId: json["PatientID"],
    tokenId: json["TokenID"],
    voipToken: json["VoipToken"],
    patientTypeId: json["PatientTypeID"],
    patientType: json["PatientType"],
    deviceToken: json["DeviceToken"],
    deviceType: json["DeviceType"],
    patientMobileNumber: json["PatientMobileNumber"],
    nationalId: json["NationalID"],
    gender: json["Gender"],
    loginType: json["LoginType"],
    macAddress: json["MACAddress"],
    latitude: json["Latitude"],
    longitude: json["Longitude"],
    sessionId: json[" SessionID"],
  );

  Map<String, dynamic> toJson() => {
    "VersionID": versionId,
    "Channel": channel,
    "LanguageID": languageId,
    "IPAdress": ipAdress,
    "generalid": generalid,
    "PatientOutSA": patientOutSa,
    "isDentalAllowedBackend": isDentalAllowedBackend,
    "DeviceTypeID": deviceTypeId,
    "PatientID": patientId,
    "TokenID": tokenId,
    "VoipToken": voipToken,
    "PatientTypeID": patientTypeId,
    "PatientType": patientType,
    "DeviceToken": deviceToken,
    "DeviceType": deviceType,
    "PatientMobileNumber": patientMobileNumber,
    "NationalID": nationalId,
    "Gender": gender,
    "LoginType": loginType,
    "MACAddress": macAddress,
    "Latitude": latitude,
    "Longitude": longitude,
    " SessionID": sessionId,
  };
}
