import 'package:hmg_patient_app_new/features/authentication/models/resp_models/authenticated_user_resp_model.dart';

class CheckActivationCode {
  dynamic date;
  int? languageID;
  int? serviceName;
  dynamic time;
  dynamic androidLink;
  String? authenticationTokenID;
  dynamic data;
  bool? dataw;
  int? dietType;
  dynamic errorCode;
  dynamic errorEndUserMessage;
  dynamic errorEndUserMessageN;
  dynamic errorMessage;
  int? errorType;
  int? foodCategory;
  dynamic iOSLink;
  bool? isAuthenticated;
  int? mealOrderStatus;
  int? mealType;
  int? messageStatus;
  int? numberOfResultRecords;
  dynamic patientBlodType;
  dynamic successMsg;
  dynamic successMsgN;
  dynamic doctorInformationList;
  dynamic getAllPendingRecordsList;
  dynamic getAllSharedRecordsByStatusList;
  dynamic getResponseFileList;
  bool? isHMGPatient;
  bool? isLoginSuccessfully;
  bool? isNeedUpdateIdintificationNo;
  bool? kioskSendSMS;
  AuthenticatedUser? list;
  dynamic listAskHabibMobileLoginInfo;
  dynamic listAskHabibPatientFile;
  dynamic listMergeFiles;
  dynamic listMobileLoginInfo;
  dynamic listPatientCount;
  dynamic logInTokenID;
  dynamic mohemmPrivilegeList;
  int? pateintID;
  String? patientBloodType;
  bool? patientHasFile;
  dynamic patientMergedIDs;
  bool? patientOutSA;
  int? patientShareRequestID;
  int? patientType;
  int? projectIDOut;
  dynamic returnMessage;
  bool? sMSLoginRequired;
  dynamic servicePrivilegeList;
  dynamic sharePatientName;
  dynamic verificationCode;
  dynamic email;
  dynamic errorList;
  bool? hasFile;
  bool? isActiveCode;
  bool? isMerged;
  bool? isNeedUserAgreement;
  bool? isSMSSent;
  dynamic memberList;
  dynamic message;
  int? statusCode;

  CheckActivationCode(
      {this.date,
      this.languageID,
      this.serviceName,
      this.time,
      this.androidLink,
      this.authenticationTokenID,
      this.data,
      this.dataw,
      this.dietType,
      this.errorCode,
      this.errorEndUserMessage,
      this.errorEndUserMessageN,
      this.errorMessage,
      this.errorType,
      this.foodCategory,
      this.iOSLink,
      this.isAuthenticated,
      this.mealOrderStatus,
      this.mealType,
      this.messageStatus,
      this.numberOfResultRecords,
      this.patientBlodType,
      this.successMsg,
      this.successMsgN,
      this.doctorInformationList,
      this.getAllPendingRecordsList,
      this.getAllSharedRecordsByStatusList,
      this.getResponseFileList,
      this.isHMGPatient,
      this.isLoginSuccessfully,
      this.isNeedUpdateIdintificationNo,
      this.kioskSendSMS,
      this.list,
      this.listAskHabibMobileLoginInfo,
      this.listAskHabibPatientFile,
      this.listMergeFiles,
      this.listMobileLoginInfo,
      this.listPatientCount,
      this.logInTokenID,
      this.mohemmPrivilegeList,
      this.pateintID,
      this.patientBloodType,
      this.patientHasFile,
      this.patientMergedIDs,
      this.patientOutSA,
      this.patientShareRequestID,
      this.patientType,
      this.projectIDOut,
      this.returnMessage,
      this.sMSLoginRequired,
      this.servicePrivilegeList,
      this.sharePatientName,
      this.verificationCode,
      this.email,
      this.errorList,
      this.hasFile,
      this.isActiveCode,
      this.isMerged,
      this.isNeedUserAgreement,
      this.isSMSSent,
      this.memberList,
      this.message,
      this.statusCode});

  CheckActivationCode.fromJson(Map<String, dynamic> json) {
    date = json['Date'];
    languageID = json['LanguageID'];
    serviceName = json['ServiceName'];
    time = json['Time'];
    androidLink = json['AndroidLink'];
    authenticationTokenID = json['AuthenticationTokenID'];
    data = json['Data'];
    dataw = json['Dataw'];
    dietType = json['DietType'];
    errorCode = json['ErrorCode'];
    errorEndUserMessage = json['ErrorEndUserMessage'];
    errorEndUserMessageN = json['ErrorEndUserMessageN'];
    errorMessage = json['ErrorMessage'];
    errorType = json['ErrorType'];
    foodCategory = json['FoodCategory'];
    iOSLink = json['IOSLink'];
    isAuthenticated = json['IsAuthenticated'];
    mealOrderStatus = json['MealOrderStatus'];
    mealType = json['MealType'];
    messageStatus = json['MessageStatus'];
    numberOfResultRecords = json['NumberOfResultRecords'];
    patientBlodType = json['PatientBlodType'];
    successMsg = json['SuccessMsg'];
    successMsgN = json['SuccessMsgN'];
    doctorInformationList = json['DoctorInformation_List'];
    getAllPendingRecordsList = json['GetAllPendingRecordsList'];
    getAllSharedRecordsByStatusList = json['GetAllSharedRecordsByStatusList'];
    getResponseFileList = json['GetResponseFileList'];
    isHMGPatient = json['IsHMGPatient'];
    isLoginSuccessfully = json['IsLoginSuccessfully'];
    isNeedUpdateIdintificationNo = json['IsNeedUpdateIdintificationNo'];
    kioskSendSMS = json['KioskSendSMS'];
    if (json['List'] != null) {
      list = AuthenticatedUser.fromJson(json['List'][0]);
    }
    listAskHabibMobileLoginInfo = json['List_AskHabibMobileLoginInfo'];
    listAskHabibPatientFile = json['List_AskHabibPatientFile'];
    listMergeFiles = json['List_MergeFiles'];
    listMobileLoginInfo = json['List_MobileLoginInfo'];
    listPatientCount = json['List_PatientCount'];
    logInTokenID = json['LogInTokenID'];
    mohemmPrivilegeList = json['MohemmPrivilege_List'];
    pateintID = json['PateintID'];
    patientBloodType = json['PatientBloodType'];
    patientHasFile = json['PatientHasFile'];
    patientMergedIDs = json['PatientMergedIDs'];
    patientOutSA = json['PatientOutSA'];
    patientShareRequestID = json['PatientShareRequestID'];
    patientType = json['PatientType'];
    projectIDOut = json['ProjectIDOut'];
    returnMessage = json['ReturnMessage'];
    sMSLoginRequired = json['SMSLoginRequired'];
    servicePrivilegeList = json['ServicePrivilege_List'];
    sharePatientName = json['SharePatientName'];
    verificationCode = json['VerificationCode'];
    email = json['email'];
    errorList = json['errorList'];
    hasFile = json['hasFile'];
    isActiveCode = json['isActiveCode'];
    isMerged = json['isMerged'];
    isNeedUserAgreement = json['isNeedUserAgreement'];
    isSMSSent = json['isSMSSent'];
    memberList = json['memberList'];
    message = json['message'];
    statusCode = json['statusCode'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['Date'] = date;
    data['LanguageID'] = languageID;
    data['ServiceName'] = serviceName;
    data['Time'] = time;
    data['AndroidLink'] = androidLink;
    data['AuthenticationTokenID'] = authenticationTokenID;
    data['Data'] = this.data;
    data['Dataw'] = dataw;
    data['DietType'] = dietType;
    data['ErrorCode'] = errorCode;
    data['ErrorEndUserMessage'] = errorEndUserMessage;
    data['ErrorEndUserMessageN'] = errorEndUserMessageN;
    data['ErrorMessage'] = errorMessage;
    data['ErrorType'] = errorType;
    data['FoodCategory'] = foodCategory;
    data['IOSLink'] = iOSLink;
    data['IsAuthenticated'] = isAuthenticated;
    data['MealOrderStatus'] = mealOrderStatus;
    data['MealType'] = mealType;
    data['MessageStatus'] = messageStatus;
    data['NumberOfResultRecords'] = numberOfResultRecords;
    data['PatientBlodType'] = patientBlodType;
    data['SuccessMsg'] = successMsg;
    data['SuccessMsgN'] = successMsgN;
    data['DoctorInformation_List'] = doctorInformationList;
    data['GetAllPendingRecordsList'] = getAllPendingRecordsList;
    data['GetAllSharedRecordsByStatusList'] = getAllSharedRecordsByStatusList;
    data['GetResponseFileList'] = getResponseFileList;
    data['IsHMGPatient'] = isHMGPatient;
    data['IsLoginSuccessfully'] = isLoginSuccessfully;
    data['IsNeedUpdateIdintificationNo'] = isNeedUpdateIdintificationNo;
    data['KioskSendSMS'] = kioskSendSMS;
    if (list != null) {
      data['List'] = list;
    }
    data['List_AskHabibMobileLoginInfo'] = listAskHabibMobileLoginInfo;
    data['List_AskHabibPatientFile'] = listAskHabibPatientFile;
    data['List_MergeFiles'] = listMergeFiles;
    data['List_MobileLoginInfo'] = listMobileLoginInfo;
    data['List_PatientCount'] = listPatientCount;
    data['LogInTokenID'] = logInTokenID;
    data['MohemmPrivilege_List'] = mohemmPrivilegeList;
    data['PateintID'] = pateintID;
    data['PatientBloodType'] = patientBloodType;
    data['PatientHasFile'] = patientHasFile;
    data['PatientMergedIDs'] = patientMergedIDs;
    data['PatientOutSA'] = patientOutSA;
    data['PatientShareRequestID'] = patientShareRequestID;
    data['PatientType'] = patientType;
    data['ProjectIDOut'] = projectIDOut;
    data['ReturnMessage'] = returnMessage;
    data['SMSLoginRequired'] = sMSLoginRequired;
    data['ServicePrivilege_List'] = servicePrivilegeList;
    data['SharePatientName'] = sharePatientName;
    data['VerificationCode'] = verificationCode;
    data['email'] = email;
    data['errorList'] = errorList;
    data['hasFile'] = hasFile;
    data['isActiveCode'] = isActiveCode;
    data['isMerged'] = isMerged;
    data['isNeedUserAgreement'] = isNeedUserAgreement;
    data['isSMSSent'] = isSMSSent;
    data['memberList'] = memberList;
    data['message'] = message;
    data['statusCode'] = statusCode;
    return data;
  }
}

class ListPrivilege {
  int? iD;
  String? serviceName;
  bool? previlege;
  dynamic region;

  ListPrivilege({this.iD, this.serviceName, this.previlege, this.region});

  ListPrivilege.fromJson(Map<String, dynamic> json) {
    iD = json['ID'];
    serviceName = json['ServiceName'];
    previlege = json['Previlege'];
    region = json['Region'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['ID'] = iD;
    data['ServiceName'] = serviceName;
    data['Previlege'] = previlege;
    data['Region'] = region;
    return data;
  }
}
