paymentInitiationConsentScopeListFromJson function
List<PaymentInitiationConsentScope>
paymentInitiationConsentScopeListFromJson(
- List? paymentInitiationConsentScope, [
- 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();
}