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