transactionCodeListFromJson function
List<TransactionCode>
transactionCodeListFromJson(
- List? transactionCode, [
- List<
TransactionCode> ? defaultValue
Implementation
List<enums.TransactionCode> transactionCodeListFromJson(
List? transactionCode, [
List<enums.TransactionCode>? defaultValue,
]) {
if (transactionCode == null) {
return defaultValue ?? [];
}
return transactionCode
.map((e) => transactionCodeFromJson(e.toString()))
.toList();
}