import 'dart:convert';

Map<String, dynamic> selectDeviceByImeiRespModelFromJson(String str) => Map<String, dynamic>.from(json.decode(str));

String selectDeviceByImeiRespModelToJson(Map<String, dynamic> data) => json.encode(Map<String, dynamic>.from(data));

class SelectDeviceByImeiRespModelElement {
  int? id;
  String? imei;
  int? logInType;
  int? patientId;
  bool? outSa;
  String? mobile;
  String? identificationNo;
  String? name;
  String? nameN;
  String? createdOn;
  String? editedOn;
  bool? biometricEnabled;
  int? patientType;
  int? preferredLanguage;

  SelectDeviceByImeiRespModelElement({
    this.id,
    this.imei,
    this.logInType,
    this.patientId,
    this.outSa,
    this.mobile,
    this.identificationNo,
    this.name,
    this.nameN,
    this.createdOn,
    this.editedOn,
    this.biometricEnabled,
    this.patientType,
    this.preferredLanguage,
  });

  factory SelectDeviceByImeiRespModelElement.fromJson(Map<String, dynamic> json) => SelectDeviceByImeiRespModelElement(
        id: json["ID"] as int?,
        imei: json["IMEI"] as String?,
        logInType: json["LogInType"] as int?,
        patientId: json["PatientID"] as int?,
        outSa: json["OutSA"] as bool?,
        mobile: json["Mobile"] as String?,
        identificationNo: json["IdentificationNo"] as String?,
        name: json["Name"] as String?,
        nameN: json["NameN"] as String?,
        createdOn: json["CreatedOn"] as String?,
        editedOn: json["EditedOn"] as String?,
        biometricEnabled: json["BiometricEnabled"] as bool?,
        patientType: json["PatientType"] as int?,
        preferredLanguage: json["PreferredLanguage"] as int?,
      );

  Map<String, dynamic> toJson() => {
        "ID": id,
        "IMEI": imei,
        "LogInType": logInType,
        "PatientID": patientId,
        "OutSA": outSa,
        "Mobile": mobile,
        "IdentificationNo": identificationNo,
        "Name": name,
        "NameN": nameN,
        "CreatedOn": createdOn,
        "EditedOn": editedOn,
        "BiometricEnabled": biometricEnabled,
        "PatientType": patientType,
        "PreferredLanguage": preferredLanguage,
      };
}
