class GetItemCreationNtfBodyList {
  List<ItemCreationHeader>? itemCreationHeader;
  List<ItemCreationLines>? itemCreationLines;
  String? pINFORMATION;
  String? pQUESTION;

  GetItemCreationNtfBodyList({this.itemCreationHeader, this.itemCreationLines, this.pINFORMATION, this.pQUESTION});

  GetItemCreationNtfBodyList.fromJson(Map<String, dynamic> json) {
    if (json['ItemCreationHeader'] != null) {
      itemCreationHeader = <ItemCreationHeader>[];
      json['ItemCreationHeader'].forEach((v) {
        itemCreationHeader!.add(new ItemCreationHeader.fromJson(v));
      });
    }
    if (json['ItemCreationLines'] != null) {
      itemCreationLines = <ItemCreationLines>[];
      json['ItemCreationLines'].forEach((v) {
        itemCreationLines!.add(new ItemCreationLines.fromJson(v));
      });
    }
    pINFORMATION = json['P_INFORMATION'];
    pQUESTION = json['P_QUESTION'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.itemCreationHeader != null) {
      data['ItemCreationHeader'] = this.itemCreationHeader!.map((v) => v.toJson()).toList();
    }
    if (this.itemCreationLines != null) {
      data['ItemCreationLines'] = this.itemCreationLines!.map((v) => v.toJson()).toList();
    }
    data['P_INFORMATION'] = this.pINFORMATION;
    data['P_QUESTION'] = this.pQUESTION;
    return data;
  }
}

class ItemCreationHeader {
  String? aNALYZEDBY;
  int? aNALYZEDBYID;
  String? aNALYZEDDATE;
  String? aPPROVEDDATE;
  String? cATEGORY;
  int? cATEGORYID;
  String? iTEMTYPE;
  String? oPERATINGUNIT;
  int? oRGID;
  int? rELATEDID;
  String? rELATEDTO;
  String? rEQUESTER;
  int? rEQUESTERID;
  String? rEQUESTDATE;
  String? sTATUS;
  int? tRANSACTIONHEADERID;
  String? uRGENTFLAG;
  String? uRGENTFLAGDISP;
  String? wFITEMKEYANALYSIS;
  String? wFITEMKEYAPPROVAL;
  String? wFITEMTYPE;

  ItemCreationHeader(
      {this.aNALYZEDBY,
      this.aNALYZEDBYID,
      this.aNALYZEDDATE,
      this.aPPROVEDDATE,
      this.cATEGORY,
      this.cATEGORYID,
      this.iTEMTYPE,
      this.oPERATINGUNIT,
      this.oRGID,
      this.rELATEDID,
      this.rELATEDTO,
      this.rEQUESTER,
      this.rEQUESTERID,
      this.rEQUESTDATE,
      this.sTATUS,
      this.tRANSACTIONHEADERID,
      this.uRGENTFLAG,
      this.uRGENTFLAGDISP,
      this.wFITEMKEYANALYSIS,
      this.wFITEMKEYAPPROVAL,
      this.wFITEMTYPE});

  ItemCreationHeader.fromJson(Map<String, dynamic> json) {
    aNALYZEDBY = json['ANALYZED_BY'];
    aNALYZEDBYID = json['ANALYZED_BY_ID'];
    aNALYZEDDATE = json['ANALYZED_DATE'];
    aPPROVEDDATE = json['APPROVED_DATE'];
    cATEGORY = json['CATEGORY'];
    cATEGORYID = json['CATEGORY_ID'];
    iTEMTYPE = json['ITEM_TYPE'];
    oPERATINGUNIT = json['OPERATING_UNIT'];
    oRGID = json['ORG_ID'];
    rELATEDID = json['RELATED_ID'];
    rELATEDTO = json['RELATED_TO'];
    rEQUESTER = json['REQUESTER'];
    rEQUESTERID = json['REQUESTER_ID'];
    rEQUESTDATE = json['REQUEST_DATE'];
    sTATUS = json['STATUS'];
    tRANSACTIONHEADERID = json['TRANSACTION_HEADER_ID'];
    uRGENTFLAG = json['URGENT_FLAG'];
    uRGENTFLAGDISP = json['URGENT_FLAG_DISP'];
    wFITEMKEYANALYSIS = json['WF_ITEM_KEY_ANALYSIS'];
    wFITEMKEYAPPROVAL = json['WF_ITEM_KEY_APPROVAL'];
    wFITEMTYPE = json['WF_ITEM_TYPE'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> data = new Map<String, dynamic>();
    data['ANALYZED_BY'] = this.aNALYZEDBY;
    data['ANALYZED_BY_ID'] = this.aNALYZEDBYID;
    data['ANALYZED_DATE'] = this.aNALYZEDDATE;
    data['APPROVED_DATE'] = this.aPPROVEDDATE;
    data['CATEGORY'] = this.cATEGORY;
    data['CATEGORY_ID'] = this.cATEGORYID;
    data['ITEM_TYPE'] = this.iTEMTYPE;
    data['OPERATING_UNIT'] = this.oPERATINGUNIT;
    data['ORG_ID'] = this.oRGID;
    data['RELATED_ID'] = this.rELATEDID;
    data['RELATED_TO'] = this.rELATEDTO;
    data['REQUESTER'] = this.rEQUESTER;
    data['REQUESTER_ID'] = this.rEQUESTERID;
    data['REQUEST_DATE'] = this.rEQUESTDATE;
    data['STATUS'] = this.sTATUS;
    data['TRANSACTION_HEADER_ID'] = this.tRANSACTIONHEADERID;
    data['URGENT_FLAG'] = this.uRGENTFLAG;
    data['URGENT_FLAG_DISP'] = this.uRGENTFLAGDISP;
    data['WF_ITEM_KEY_ANALYSIS'] = this.wFITEMKEYANALYSIS;
    data['WF_ITEM_KEY_APPROVAL'] = this.wFITEMKEYAPPROVAL;
    data['WF_ITEM_TYPE'] = this.wFITEMTYPE;
    return data;
  }
}

class ItemCreationLines {
  String? cHARGETOPATIENT;
  int? fROMROWNUM;
  int? iNVENTORYITEMID;
  String? iTEMCODE;
  String? iTEMCREATIONSTATUS;
  String? iTEMCREATIONSTATUSDISP;
  String? iTEMDESCRIPTION;
  String? iTEMGROUP;
  String? iTEMGROUPCODE;
  String? iTEMSUBGROUP;
  String? iTEMSUBGROUPCODE;
  String? iTEMTYPE;
  String? jUSTIFICATION;
  int? lINENUMBER;
  int? nOOFROWS;
  String? pRIMARYUOM;
  String? pRIMARYUOMCODE;
  String? pRODUCTDESCRIPTION;
  String? pRODUCTNAME;
  int? rOWNUM;
  String? sTANARDSTATUSDISP;
  int? sTANDARDMANUFACTURERID;
  String? sTANDARDMANUFACTURERNAME;
  String? sTANDARDMFGPARTNUM;
  String? sTANDARDREJECTREASON;
  String? sTANDARDSTATUS;
  String? sUPPLIERCONTACT;
  String? sUPPLIERNAME;
  int? tEMPLATEID;
  String? tEMPLATENAME;
  int? tOROWNUM;
  int? tRANSACTIONHEADERID;
  int? tRANSACTIONLINEID;
  num? uNITPRICE;
  String? uSERMANUFACTURERNAME;
  String? uSERMFGPARTNUM;

  ItemCreationLines(
      {this.cHARGETOPATIENT,
      this.fROMROWNUM,
      this.iNVENTORYITEMID,
      this.iTEMCODE,
      this.iTEMCREATIONSTATUS,
      this.iTEMCREATIONSTATUSDISP,
      this.iTEMDESCRIPTION,
      this.iTEMGROUP,
      this.iTEMGROUPCODE,
      this.iTEMSUBGROUP,
      this.iTEMSUBGROUPCODE,
      this.iTEMTYPE,
      this.jUSTIFICATION,
      this.lINENUMBER,
      this.nOOFROWS,
      this.pRIMARYUOM,
      this.pRIMARYUOMCODE,
      this.pRODUCTDESCRIPTION,
      this.pRODUCTNAME,
      this.rOWNUM,
      this.sTANARDSTATUSDISP,
      this.sTANDARDMANUFACTURERID,
      this.sTANDARDMANUFACTURERNAME,
      this.sTANDARDMFGPARTNUM,
      this.sTANDARDREJECTREASON,
      this.sTANDARDSTATUS,
      this.sUPPLIERCONTACT,
      this.sUPPLIERNAME,
      this.tEMPLATEID,
      this.tEMPLATENAME,
      this.tOROWNUM,
      this.tRANSACTIONHEADERID,
      this.tRANSACTIONLINEID,
      this.uNITPRICE,
      this.uSERMANUFACTURERNAME,
      this.uSERMFGPARTNUM});

  ItemCreationLines.fromJson(Map<String, dynamic> json) {
    cHARGETOPATIENT = json['CHARGE_TO_PATIENT'];
    fROMROWNUM = json['FROM_ROW_NUM'];
    iNVENTORYITEMID = json['INVENTORY_ITEM_ID'];
    iTEMCODE = json['ITEM_CODE'];
    iTEMCREATIONSTATUS = json['ITEM_CREATION_STATUS'];
    iTEMCREATIONSTATUSDISP = json['ITEM_CREATION_STATUS_DISP'];
    iTEMDESCRIPTION = json['ITEM_DESCRIPTION'];
    iTEMGROUP = json['ITEM_GROUP'];
    iTEMGROUPCODE = json['ITEM_GROUP_CODE'];
    iTEMSUBGROUP = json['ITEM_SUBGROUP'];
    iTEMSUBGROUPCODE = json['ITEM_SUBGROUP_CODE'];
    iTEMTYPE = json['ITEM_TYPE'];
    jUSTIFICATION = json['JUSTIFICATION'];
    lINENUMBER = json['LINE_NUMBER'];
    nOOFROWS = json['NO_OF_ROWS'];
    pRIMARYUOM = json['PRIMARY_UOM'];
    pRIMARYUOMCODE = json['PRIMARY_UOM_CODE'];
    pRODUCTDESCRIPTION = json['PRODUCT_DESCRIPTION'];
    pRODUCTNAME = json['PRODUCT_NAME'];
    rOWNUM = json['ROW_NUM'];
    sTANARDSTATUSDISP = json['STANARD_STATUS_DISP'];
    sTANDARDMANUFACTURERID = json['STANDARD_MANUFACTURER_ID'];
    sTANDARDMANUFACTURERNAME = json['STANDARD_MANUFACTURER_NAME'];
    sTANDARDMFGPARTNUM = json['STANDARD_MFG_PART_NUM'];
    sTANDARDREJECTREASON = json['STANDARD_REJECT_REASON'];
    sTANDARDSTATUS = json['STANDARD_STATUS'];
    sUPPLIERCONTACT = json['SUPPLIER_CONTACT'];
    sUPPLIERNAME = json['SUPPLIER_NAME'];
    tEMPLATEID = json['TEMPLATE_ID'];
    tEMPLATENAME = json['TEMPLATE_NAME'];
    tOROWNUM = json['TO_ROW_NUM'];
    tRANSACTIONHEADERID = json['TRANSACTION_HEADER_ID'];
    tRANSACTIONLINEID = json['TRANSACTION_LINE_ID'];
    uNITPRICE = json['UNIT_PRICE'];
    uSERMANUFACTURERNAME = json['USER_MANUFACTURER_NAME'];
    uSERMFGPARTNUM = json['USER_MFG_PART_NUM'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> data = new Map<String, dynamic>();
    data['CHARGE_TO_PATIENT'] = this.cHARGETOPATIENT;
    data['FROM_ROW_NUM'] = this.fROMROWNUM;
    data['INVENTORY_ITEM_ID'] = this.iNVENTORYITEMID;
    data['ITEM_CODE'] = this.iTEMCODE;
    data['ITEM_CREATION_STATUS'] = this.iTEMCREATIONSTATUS;
    data['ITEM_CREATION_STATUS_DISP'] = this.iTEMCREATIONSTATUSDISP;
    data['ITEM_DESCRIPTION'] = this.iTEMDESCRIPTION;
    data['ITEM_GROUP'] = this.iTEMGROUP;
    data['ITEM_GROUP_CODE'] = this.iTEMGROUPCODE;
    data['ITEM_SUBGROUP'] = this.iTEMSUBGROUP;
    data['ITEM_SUBGROUP_CODE'] = this.iTEMSUBGROUPCODE;
    data['ITEM_TYPE'] = this.iTEMTYPE;
    data['JUSTIFICATION'] = this.jUSTIFICATION;
    data['LINE_NUMBER'] = this.lINENUMBER;
    data['NO_OF_ROWS'] = this.nOOFROWS;
    data['PRIMARY_UOM'] = this.pRIMARYUOM;
    data['PRIMARY_UOM_CODE'] = this.pRIMARYUOMCODE;
    data['PRODUCT_DESCRIPTION'] = this.pRODUCTDESCRIPTION;
    data['PRODUCT_NAME'] = this.pRODUCTNAME;
    data['ROW_NUM'] = this.rOWNUM;
    data['STANARD_STATUS_DISP'] = this.sTANARDSTATUSDISP;
    data['STANDARD_MANUFACTURER_ID'] = this.sTANDARDMANUFACTURERID;
    data['STANDARD_MANUFACTURER_NAME'] = this.sTANDARDMANUFACTURERNAME;
    data['STANDARD_MFG_PART_NUM'] = this.sTANDARDMFGPARTNUM;
    data['STANDARD_REJECT_REASON'] = this.sTANDARDREJECTREASON;
    data['STANDARD_STATUS'] = this.sTANDARDSTATUS;
    data['SUPPLIER_CONTACT'] = this.sUPPLIERCONTACT;
    data['SUPPLIER_NAME'] = this.sUPPLIERNAME;
    data['TEMPLATE_ID'] = this.tEMPLATEID;
    data['TEMPLATE_NAME'] = this.tEMPLATENAME;
    data['TO_ROW_NUM'] = this.tOROWNUM;
    data['TRANSACTION_HEADER_ID'] = this.tRANSACTIONHEADERID;
    data['TRANSACTION_LINE_ID'] = this.tRANSACTIONLINEID;
    data['UNIT_PRICE'] = this.uNITPRICE;
    data['USER_MANUFACTURER_NAME'] = this.uSERMANUFACTURERNAME;
    data['USER_MFG_PART_NUM'] = this.uSERMFGPARTNUM;
    return data;
  }
}
