paymentScheduleIntervalNullableListFromJson function

List<PaymentScheduleInterval>? paymentScheduleIntervalNullableListFromJson(
  1. List? paymentScheduleInterval, [
  2. List<PaymentScheduleInterval>? defaultValue
])

Implementation

List<enums.PaymentScheduleInterval>?
    paymentScheduleIntervalNullableListFromJson(
  List? paymentScheduleInterval, [
  List<enums.PaymentScheduleInterval>? defaultValue,
]) {
  if (paymentScheduleInterval == null) {
    return defaultValue;
  }

  return paymentScheduleInterval
      .map((e) => paymentScheduleIntervalFromJson(e.toString()))
      .toList();
}