enrichTransactionDirectionListFromJson function
List<EnrichTransactionDirection>
enrichTransactionDirectionListFromJson(
- List? enrichTransactionDirection, [
- List<
EnrichTransactionDirection> ? defaultValue
Implementation
List<enums.EnrichTransactionDirection> enrichTransactionDirectionListFromJson(
List? enrichTransactionDirection, [
List<enums.EnrichTransactionDirection>? defaultValue,
]) {
if (enrichTransactionDirection == null) {
return defaultValue ?? [];
}
return enrichTransactionDirection
.map((e) => enrichTransactionDirectionFromJson(e.toString()))
.toList();
}