accountTypeNullableListFromJson function
List<AccountType> ?
accountTypeNullableListFromJson(
- List? accountType, [
- List<
AccountType> ? defaultValue
Implementation
List<enums.AccountType>? accountTypeNullableListFromJson(
List? accountType, [
List<enums.AccountType>? defaultValue,
]) {
if (accountType == null) {
return defaultValue;
}
return accountType.map((e) => accountTypeFromJson(e.toString())).toList();
}