paymentScheduleIntervalListFromJson function
List<PaymentScheduleInterval>
paymentScheduleIntervalListFromJson(
- List? paymentScheduleInterval, [
- List<
PaymentScheduleInterval> ? defaultValue
Implementation
List<enums.PaymentScheduleInterval> paymentScheduleIntervalListFromJson(
List? paymentScheduleInterval, [
List<enums.PaymentScheduleInterval>? defaultValue,
]) {
if (paymentScheduleInterval == null) {
return defaultValue ?? [];
}
return paymentScheduleInterval
.map((e) => paymentScheduleIntervalFromJson(e.toString()))
.toList();
}