transactionsRuleFieldListFromJson function
List<TransactionsRuleField>
transactionsRuleFieldListFromJson(
- List? transactionsRuleField, [
- List<
TransactionsRuleField> ? defaultValue
Implementation
List<enums.TransactionsRuleField> transactionsRuleFieldListFromJson(
List? transactionsRuleField, [
List<enums.TransactionsRuleField>? defaultValue,
]) {
if (transactionsRuleField == null) {
return defaultValue ?? [];
}
return transactionsRuleField
.map((e) => transactionsRuleFieldFromJson(e.toString()))
.toList();
}