paymentAmountCurrencyListFromJson function
List<PaymentAmountCurrency>
paymentAmountCurrencyListFromJson(
- List? paymentAmountCurrency, [
- List<
PaymentAmountCurrency> ? defaultValue
Implementation
List<enums.PaymentAmountCurrency> paymentAmountCurrencyListFromJson(
List? paymentAmountCurrency, [
List<enums.PaymentAmountCurrency>? defaultValue,
]) {
if (paymentAmountCurrency == null) {
return defaultValue ?? [];
}
return paymentAmountCurrency
.map((e) => paymentAmountCurrencyFromJson(e.toString()))
.toList();
}