fixes
parent
db16a822fc
commit
7252bebd1f
@ -1,39 +1,86 @@
|
|||||||
|
// 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,
|
||||||
|
// };
|
||||||
|
// }
|
||||||
|
|
||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
class GetAccrualBalancesList {
|
class GetAccrualBalancesList {
|
||||||
|
String? accuraLPlanName;
|
||||||
|
DateTime? starTDate;
|
||||||
|
DateTime? enDDate;
|
||||||
|
DateTime? lasTAccrualDate;
|
||||||
|
dynamic accruaLYearlyEntitlement;
|
||||||
|
double? accruaLNetEntitlement;
|
||||||
|
int? accruaLUsedEntitlement;
|
||||||
|
|
||||||
GetAccrualBalancesList({
|
GetAccrualBalancesList({
|
||||||
this.accrualNetEntitlement,
|
this.accuraLPlanName,
|
||||||
this.accrualUsedEntitlement,
|
this.starTDate,
|
||||||
this.accrualYearlyEntitlement,
|
this.enDDate,
|
||||||
this.accuralPlanName,
|
this.lasTAccrualDate,
|
||||||
this.endDate,
|
this.accruaLYearlyEntitlement,
|
||||||
this.lastAccrualDate,
|
this.accruaLNetEntitlement,
|
||||||
this.startDate,
|
this.accruaLUsedEntitlement,
|
||||||
});
|
});
|
||||||
|
|
||||||
double? accrualNetEntitlement;
|
factory GetAccrualBalancesList.fromRawJson(String str) => GetAccrualBalancesList.fromJson(json.decode(str));
|
||||||
num? accrualUsedEntitlement; //Todo: Add function
|
|
||||||
dynamic accrualYearlyEntitlement;
|
String toRawJson() => json.encode(toJson());
|
||||||
String? accuralPlanName;
|
|
||||||
String? endDate;
|
|
||||||
String? lastAccrualDate;
|
|
||||||
String? startDate;
|
|
||||||
|
|
||||||
factory GetAccrualBalancesList.fromJson(Map<String, dynamic> json) => GetAccrualBalancesList(
|
factory GetAccrualBalancesList.fromJson(Map<String, dynamic> json) => GetAccrualBalancesList(
|
||||||
accrualNetEntitlement: json["ACCRUAL_NET_ENTITLEMENT"] == null ? null : json["ACCRUAL_NET_ENTITLEMENT"].toDouble(),
|
accuraLPlanName: json["accuraL_PLAN_NAME"],
|
||||||
accrualUsedEntitlement: json["ACCRUAL_USED_ENTITLEMENT"] == null ? null : json["ACCRUAL_USED_ENTITLEMENT"],
|
starTDate: json["starT_DATE"] == null ? null : DateTime.parse(json["starT_DATE"]),
|
||||||
accrualYearlyEntitlement: json["ACCRUAL_YEARLY_ENTITLEMENT"],
|
enDDate: json["enD_DATE"] == null ? null : DateTime.parse(json["enD_DATE"]),
|
||||||
accuralPlanName: json["ACCURAL_PLAN_NAME"] == null ? null : json["ACCURAL_PLAN_NAME"],
|
lasTAccrualDate: json["lasT_ACCRUAL_DATE"] == null ? null : DateTime.parse(json["lasT_ACCRUAL_DATE"]),
|
||||||
endDate: json["END_DATE"] == null ? null : json["END_DATE"],
|
accruaLYearlyEntitlement: json["accruaL_YEARLY_ENTITLEMENT"],
|
||||||
lastAccrualDate: json["LAST_ACCRUAL_DATE"] == null ? null : json["LAST_ACCRUAL_DATE"],
|
accruaLNetEntitlement: json["accruaL_NET_ENTITLEMENT"]?.toDouble(),
|
||||||
startDate: json["START_DATE"] == null ? null : json["START_DATE"],
|
accruaLUsedEntitlement: json["accruaL_USED_ENTITLEMENT"],
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {
|
Map<String, dynamic> toJson() => {
|
||||||
"ACCRUAL_NET_ENTITLEMENT": accrualNetEntitlement == null ? null : accrualNetEntitlement,
|
"accuraL_PLAN_NAME": accuraLPlanName,
|
||||||
"ACCRUAL_USED_ENTITLEMENT": accrualUsedEntitlement == null ? null : accrualUsedEntitlement,
|
"starT_DATE": starTDate?.toIso8601String(),
|
||||||
"ACCRUAL_YEARLY_ENTITLEMENT": accrualYearlyEntitlement,
|
"enD_DATE": enDDate?.toIso8601String(),
|
||||||
"ACCURAL_PLAN_NAME": accuralPlanName == null ? null : accuralPlanName,
|
"lasT_ACCRUAL_DATE": lasTAccrualDate?.toIso8601String(),
|
||||||
"END_DATE": endDate == null ? null : endDate,
|
"accruaL_YEARLY_ENTITLEMENT": accruaLYearlyEntitlement,
|
||||||
"LAST_ACCRUAL_DATE": lastAccrualDate == null ? null : lastAccrualDate,
|
"accruaL_NET_ENTITLEMENT": accruaLNetEntitlement,
|
||||||
"START_DATE": startDate == null ? null : startDate,
|
"accruaL_USED_ENTITLEMENT": accruaLUsedEntitlement,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue