// To parse this JSON data, do
//
//     final itgRes = itgResFromJson(jsonString);

import 'dart:convert';

import 'package:mohem_flutter_app/models/itg/itg_response_model.dart';

ItgMainRes itgResFromJson(String str) => ItgMainRes.fromJson(json.decode(str));

String itgResToJson(ItgMainRes data) => json.encode(data.toJson());

class ItgMainRes {
  ItgMainRes({
    this.date,
    this.languageId,
    this.serviceName,
    this.time,
    this.androidLink,
    this.authenticationTokenId,
    this.data,
    this.dataw,
    this.dietType,
    this.dietTypeId,
    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.vidaUpdatedResponse,
    this.itgRequest,
    this.itgFormAttachmentsList,
    this.message,
    this.mohemmItgDepartmentSectionsList,
    this.mohemmItgPendingTaskResponseItem,
    this.mohemmItgProjectDepartmentsList,
    this.mohemmItgResponseItem,
    this.mohemmItgSectionTopicsList,
    this.mohemmItgTicketDetailsList,
    this.mohemmItgTicketTransactionsList,
    this.mohemmItgTicketsByEmployeeList,
    this.mohemmItgProjectsList,
    this.mohemmItgTicketTypesList,
    this.referenceNumber,
    this.requestType,
    this.totalCount,
    this.statuseCode,
  });

  final dynamic date;
  final int? languageId;
  final int? serviceName;
  final dynamic time;
  final dynamic androidLink;
  final dynamic authenticationTokenId;
  final dynamic data;
  final bool? dataw;
  final int? dietType;
  final int? dietTypeId;
  final dynamic errorCode;
  final dynamic errorEndUserMessage;
  final dynamic errorEndUserMessageN;
  final dynamic errorMessage;
  final int? errorType;
  final int? foodCategory;
  final dynamic iosLink;
  final bool? isAuthenticated;
  final int? mealOrderStatus;
  final int? mealType;
  final int? messageStatus;
  final int? numberOfResultRecords;
  final dynamic patientBlodType;
  final dynamic successMsg;
  final dynamic successMsgN;
  final dynamic vidaUpdatedResponse;
  final dynamic itgRequest;
  final dynamic itgFormAttachmentsList;
  final dynamic message;
  final dynamic mohemmItgDepartmentSectionsList;
  final dynamic mohemmItgPendingTaskResponseItem;
  final dynamic mohemmItgProjectDepartmentsList;
  final MohemmItgResponseItem? mohemmItgResponseItem;
  final dynamic mohemmItgSectionTopicsList;
  final dynamic mohemmItgTicketDetailsList;
  final dynamic mohemmItgTicketTransactionsList;
  final dynamic mohemmItgTicketsByEmployeeList;
  final dynamic mohemmItgProjectsList;
  final dynamic mohemmItgTicketTypesList;
  final dynamic referenceNumber;
  final dynamic requestType;
  final int? totalCount;
  final int? statuseCode;

  factory ItgMainRes.fromJson(Map<String, dynamic> json) => ItgMainRes(
    date: json["Date"],
    languageId: json["LanguageID"] == null ? null : json["LanguageID"],
    serviceName: json["ServiceName"] == null ? null : json["ServiceName"],
    time: json["Time"],
    androidLink: json["AndroidLink"],
    authenticationTokenId: json["AuthenticationTokenID"],
    data: json["Data"],
    dataw: json["Dataw"] == null ? null : json["Dataw"],
    dietType: json["DietType"] == null ? null : json["DietType"],
    dietTypeId: json["DietTypeID"] == null ? null : json["DietTypeID"],
    errorCode: json["ErrorCode"],
    errorEndUserMessage: json["ErrorEndUserMessage"],
    errorEndUserMessageN: json["ErrorEndUserMessageN"],
    errorMessage: json["ErrorMessage"],
    errorType: json["ErrorType"] == null ? null : json["ErrorType"],
    foodCategory: json["FoodCategory"] == null ? null : json["FoodCategory"],
    iosLink: json["IOSLink"],
    isAuthenticated: json["IsAuthenticated"] == null ? null : json["IsAuthenticated"],
    mealOrderStatus: json["MealOrderStatus"] == null ? null : json["MealOrderStatus"],
    mealType: json["MealType"] == null ? null : json["MealType"],
    messageStatus: json["MessageStatus"] == null ? null : json["MessageStatus"],
    numberOfResultRecords: json["NumberOfResultRecords"] == null ? null : json["NumberOfResultRecords"],
    patientBlodType: json["PatientBlodType"],
    successMsg: json["SuccessMsg"],
    successMsgN: json["SuccessMsgN"],
    vidaUpdatedResponse: json["VidaUpdatedResponse"],
    itgRequest: json["ITGRequest"],
    itgFormAttachmentsList: json["Itg_FormAttachmentsList"],
    message: json["Message"],
    mohemmItgDepartmentSectionsList: json["Mohemm_ITG_DepartmentSectionsList"],
    mohemmItgPendingTaskResponseItem: json["Mohemm_ITG_Pending_Task_ResponseItem"],
    mohemmItgProjectDepartmentsList: json["Mohemm_ITG_ProjectDepartmentsList"],
    mohemmItgResponseItem: json["Mohemm_ITG_ResponseItem"] ==null ? null : MohemmItgResponseItem.fromJson(jsonDecode(json["Mohemm_ITG_ResponseItem"])),
    mohemmItgSectionTopicsList: json["Mohemm_ITG_SectionTopicsList"],
    mohemmItgTicketDetailsList: json["Mohemm_ITG_TicketDetailsList"],
    mohemmItgTicketTransactionsList: json["Mohemm_ITG_TicketTransactionsList"],
    mohemmItgTicketsByEmployeeList: json["Mohemm_ITG_TicketsByEmployeeList"],
    mohemmItgProjectsList: json["Mohemm_Itg_ProjectsList"],
    mohemmItgTicketTypesList: json["Mohemm_Itg_TicketTypesList"],
    referenceNumber: json["ReferenceNumber"],
    requestType: json["RequestType"],
    totalCount: json["TotalCount"] == null ? null : json["TotalCount"],
    statuseCode: json["statuseCode"] == null ? null : json["statuseCode"],
  );

  Map<String, dynamic> toJson() => {
    "Date": date,
    "LanguageID": languageId == null ? null : languageId,
    "ServiceName": serviceName == null ? null : serviceName,
    "Time": time,
    "AndroidLink": androidLink,
    "AuthenticationTokenID": authenticationTokenId,
    "Data": data,
    "Dataw": dataw == null ? null : dataw,
    "DietType": dietType == null ? null : dietType,
    "DietTypeID": dietTypeId == null ? null : dietTypeId,
    "ErrorCode": errorCode,
    "ErrorEndUserMessage": errorEndUserMessage,
    "ErrorEndUserMessageN": errorEndUserMessageN,
    "ErrorMessage": errorMessage,
    "ErrorType": errorType == null ? null : errorType,
    "FoodCategory": foodCategory == null ? null : foodCategory,
    "IOSLink": iosLink,
    "IsAuthenticated": isAuthenticated == null ? null : isAuthenticated,
    "MealOrderStatus": mealOrderStatus == null ? null : mealOrderStatus,
    "MealType": mealType == null ? null : mealType,
    "MessageStatus": messageStatus == null ? null : messageStatus,
    "NumberOfResultRecords": numberOfResultRecords == null ? null : numberOfResultRecords,
    "PatientBlodType": patientBlodType,
    "SuccessMsg": successMsg,
    "SuccessMsgN": successMsgN,
    "VidaUpdatedResponse": vidaUpdatedResponse,
    "ITGRequest": itgRequest,
    "Itg_FormAttachmentsList": itgFormAttachmentsList,
    "Message": message,
    "Mohemm_ITG_DepartmentSectionsList": mohemmItgDepartmentSectionsList,
    "Mohemm_ITG_Pending_Task_ResponseItem": mohemmItgPendingTaskResponseItem,
    "Mohemm_ITG_ProjectDepartmentsList": mohemmItgProjectDepartmentsList,
    "Mohemm_ITG_ResponseItem": mohemmItgResponseItem == null ? null : mohemmItgResponseItem,
    "Mohemm_ITG_SectionTopicsList": mohemmItgSectionTopicsList,
    "Mohemm_ITG_TicketDetailsList": mohemmItgTicketDetailsList,
    "Mohemm_ITG_TicketTransactionsList": mohemmItgTicketTransactionsList,
    "Mohemm_ITG_TicketsByEmployeeList": mohemmItgTicketsByEmployeeList,
    "Mohemm_Itg_ProjectsList": mohemmItgProjectsList,
    "Mohemm_Itg_TicketTypesList": mohemmItgTicketTypesList,
    "ReferenceNumber": referenceNumber,
    "RequestType": requestType,
    "TotalCount": totalCount == null ? null : totalCount,
    "statuseCode": statuseCode == null ? null : statuseCode,
  };
}
