paymentInitiationConsentScopeListFromJson function

List<PaymentInitiationConsentScope> paymentInitiationConsentScopeListFromJson(
  1. List? paymentInitiationConsentScope, [
  2. List<PaymentInitiationConsentScope>? defaultValue
])

Implementation

List<enums.PaymentInitiationConsentScope>
    paymentInitiationConsentScopeListFromJson(
  List? paymentInitiationConsentScope, [
  List<enums.PaymentInitiationConsentScope>? defaultValue,
]) {
  if (paymentInitiationConsentScope == null) {
    return defaultValue ?? [];
  }

  return paymentInitiationConsentScope
      .map((e) => paymentInitiationConsentScopeFromJson(e.toString()))
      .toList();
}