accountTypeNullableListFromJson function

List<AccountType>? accountTypeNullableListFromJson(
  1. List? accountType, [
  2. 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();
}