class GetAccrualBalancesList {
  GetAccrualBalancesList({
    this.accrualNetEntitlement,
    this.accrualUsedEntitlement,
    this.accrualYearlyEntitlement,
    this.accuralPlanName,
    this.endDate,
    this.lastAccrualDate,
    this.startDate,
  });

  double? accrualNetEntitlement;
  num? accrualUsedEntitlement; //Todo: Add function
  dynamic accrualYearlyEntitlement;
  String? accuralPlanName;
  String? endDate;
  String? lastAccrualDate;
  String? startDate;

  factory GetAccrualBalancesList.fromJson(Map<String, dynamic> json) => GetAccrualBalancesList(
    accrualNetEntitlement: json["ACCRUAL_NET_ENTITLEMENT"] == null ? null : json["ACCRUAL_NET_ENTITLEMENT"].toDouble(),
    accrualUsedEntitlement: json["ACCRUAL_USED_ENTITLEMENT"] == null ? null : json["ACCRUAL_USED_ENTITLEMENT"],
    accrualYearlyEntitlement: json["ACCRUAL_YEARLY_ENTITLEMENT"],
    accuralPlanName: json["ACCURAL_PLAN_NAME"] == null ? null : json["ACCURAL_PLAN_NAME"],
    endDate: json["END_DATE"] == null ? null : json["END_DATE"],
    lastAccrualDate: json["LAST_ACCRUAL_DATE"] == null ? null : json["LAST_ACCRUAL_DATE"],
    startDate: json["START_DATE"] == null ? null : json["START_DATE"],
  );

  Map<String, dynamic> toJson() => {
    "ACCRUAL_NET_ENTITLEMENT": accrualNetEntitlement == null ? null : accrualNetEntitlement,
    "ACCRUAL_USED_ENTITLEMENT": accrualUsedEntitlement == null ? null : accrualUsedEntitlement,
    "ACCRUAL_YEARLY_ENTITLEMENT": accrualYearlyEntitlement,
    "ACCURAL_PLAN_NAME": accuralPlanName == null ? null : accuralPlanName,
    "END_DATE": endDate == null ? null : endDate,
    "LAST_ACCRUAL_DATE": lastAccrualDate == null ? null : lastAccrualDate,
    "START_DATE": startDate == null ? null : startDate,
  };
}
