transactionFrequencyListFromJson function
List<TransactionFrequency>
transactionFrequencyListFromJson(
- List? transactionFrequency, [
- List<
TransactionFrequency> ? defaultValue
Implementation
List<enums.TransactionFrequency> transactionFrequencyListFromJson(
List? transactionFrequency, [
List<enums.TransactionFrequency>? defaultValue,
]) {
if (transactionFrequency == null) {
return defaultValue ?? [];
}
return transactionFrequency
.map((e) => transactionFrequencyFromJson(e.toString()))
.toList();
}