transferNetworkListFromJson function
List<TransferNetwork>
transferNetworkListFromJson(
- List? transferNetwork, [
- List<
TransferNetwork> ? defaultValue
Implementation
List<enums.TransferNetwork> transferNetworkListFromJson(
List? transferNetwork, [
List<enums.TransferNetwork>? defaultValue,
]) {
if (transferNetwork == null) {
return defaultValue ?? [];
}
return transferNetwork
.map((e) => transferNetworkFromJson(e.toString()))
.toList();
}