class GetAbsenceCollectionNotificationBodyList {
  GetAbsenceCollectionNotificationBodyList({
    this.collectionNotification,
  });

  final List<CollectionNotification>? collectionNotification;

  factory GetAbsenceCollectionNotificationBodyList.fromJson(Map<String, dynamic> json) => GetAbsenceCollectionNotificationBodyList(
    collectionNotification: json["Collection_Notification"] == null ? null : List<CollectionNotification>.from(json["Collection_Notification"].map((x) => CollectionNotification.fromJson(x))),
  );

  Map<String, dynamic> toJson() => {
    "Collection_Notification": collectionNotification == null ? null : List<dynamic>.from(collectionNotification!.map((x) => x.toJson())),
  };
}

class CollectionNotification {
  CollectionNotification({
    this.action,
    this.applicationColumnName,
    this.datatype,
    this.dateValue,
    this.descFlexContextCode,
    this.descFlexName,
    this.displayFlag,
    this.numberValue,
    this.prevSegmentValueDsp,
    this.segmentName,
    this.segmentPrompt,
    this.segmentSeqNum,
    this.segmentValueDsp,
    this.transactionNumber,
    this.varchar2Value,
  });

  final String? action;
  final String? applicationColumnName;
  final String? datatype;
  final String? dateValue;
  final String? descFlexContextCode;
  final String? descFlexName;
  final String? displayFlag;
  final int? numberValue;
  final String? prevSegmentValueDsp;
  final String? segmentName;
  final String? segmentPrompt;
  final int? segmentSeqNum;
  final String? segmentValueDsp;
  final int? transactionNumber;
  final String? varchar2Value;

  factory CollectionNotification.fromJson(Map<String, dynamic> json) => CollectionNotification(
    action: json["ACTION"] == null ? null : json["ACTION"],
    applicationColumnName: json["APPLICATION_COLUMN_NAME"] == null ? null :json["APPLICATION_COLUMN_NAME"],
    datatype: json["DATATYPE"] == null ? null : json["DATATYPE"],
    dateValue: json["DATE_VALUE"] == null ? null : json["DATE_VALUE"],
    descFlexContextCode: json["DESC_FLEX_CONTEXT_CODE"] == null ? null : json["DESC_FLEX_CONTEXT_CODE"],
    descFlexName: json["DESC_FLEX_NAME"] == null ? null : json["DESC_FLEX_NAME"],
    displayFlag: json["DISPLAY_FLAG"] == null ? null : json["DISPLAY_FLAG"],
    numberValue: json["NUMBER_VALUE"] == null ? null : json["NUMBER_VALUE"],
    prevSegmentValueDsp: json["PREV_SEGMENT_VALUE_DSP"] == null ? null : json["PREV_SEGMENT_VALUE_DSP"],
    segmentName: json["SEGMENT_NAME"] == null ? null : json["SEGMENT_NAME"],
    segmentPrompt: json["SEGMENT_PROMPT"] == null ? null : json["SEGMENT_PROMPT"],
    segmentSeqNum: json["SEGMENT_SEQ_NUM"] == null ? null : json["SEGMENT_SEQ_NUM"],
    segmentValueDsp: json["SEGMENT_VALUE_DSP"] == null ? null : json["SEGMENT_VALUE_DSP"],
    transactionNumber: json["TRANSACTION_NUMBER"] == null ? null : json["TRANSACTION_NUMBER"],
    varchar2Value: json["VARCHAR2_VALUE"] == null ? null : json["VARCHAR2_VALUE"],
  );

  Map<String, dynamic> toJson() => {
    "ACTION": action == null ? null : action,
    "APPLICATION_COLUMN_NAME": applicationColumnName == null ? null : applicationColumnName,
    "DATATYPE": datatype == null ? null :datatype,
    "DATE_VALUE": dateValue == null ? null : dateValue,
    "DESC_FLEX_CONTEXT_CODE": descFlexContextCode == null ? null : descFlexContextCode,
    "DESC_FLEX_NAME": descFlexName == null ? null : descFlexName,
    "DISPLAY_FLAG": displayFlag == null ? null : displayFlag,
    "NUMBER_VALUE": numberValue == null ? null : numberValue,
    "PREV_SEGMENT_VALUE_DSP": prevSegmentValueDsp == null ? null : prevSegmentValueDsp,
    "SEGMENT_NAME": segmentName == null ? null : segmentName,
    "SEGMENT_PROMPT": segmentPrompt == null ? null : segmentPrompt,
    "SEGMENT_SEQ_NUM": segmentSeqNum == null ? null : segmentSeqNum,
    "SEGMENT_VALUE_DSP": segmentValueDsp == null ? null : segmentValueDsp,
    "TRANSACTION_NUMBER": transactionNumber == null ? null : transactionNumber,
    "VARCHAR2_VALUE": varchar2Value == null ? null : varchar2Value,
  };
}