paymentInitiationConsentScopeNullableListFromJson function

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

Implementation

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

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