accountSubtypeListFromJson function
List<AccountSubtype>
accountSubtypeListFromJson(
- List? accountSubtype, [
- List<
AccountSubtype> ? defaultValue
Implementation
List<enums.AccountSubtype> accountSubtypeListFromJson(
List? accountSubtype, [
List<enums.AccountSubtype>? defaultValue,
]) {
if (accountSubtype == null) {
return defaultValue ?? [];
}
return accountSubtype
.map((e) => accountSubtypeFromJson(e.toString()))
.toList();
}