paymentInitiationPaymentStatusListFromJson function

List<PaymentInitiationPaymentStatus> paymentInitiationPaymentStatusListFromJson(
  1. List? paymentInitiationPaymentStatus, [
  2. List<PaymentInitiationPaymentStatus>? defaultValue
])

Implementation

List<enums.PaymentInitiationPaymentStatus>
    paymentInitiationPaymentStatusListFromJson(
  List? paymentInitiationPaymentStatus, [
  List<enums.PaymentInitiationPaymentStatus>? defaultValue,
]) {
  if (paymentInitiationPaymentStatus == null) {
    return defaultValue ?? [];
  }

  return paymentInitiationPaymentStatus
      .map((e) => paymentInitiationPaymentStatusFromJson(e.toString()))
      .toList();
}