walletISOCurrencyCodeListFromJson function

List<WalletISOCurrencyCode> walletISOCurrencyCodeListFromJson(
  1. List? walletISOCurrencyCode, [
  2. List<WalletISOCurrencyCode>? defaultValue
])

Implementation

List<enums.WalletISOCurrencyCode> walletISOCurrencyCodeListFromJson(
  List? walletISOCurrencyCode, [
  List<enums.WalletISOCurrencyCode>? defaultValue,
]) {
  if (walletISOCurrencyCode == null) {
    return defaultValue ?? [];
  }

  return walletISOCurrencyCode
      .map((e) => walletISOCurrencyCodeFromJson(e.toString()))
      .toList();
}