nullOnlyNullableListFromJson function

List<NullOnly>? nullOnlyNullableListFromJson(
  1. List? nullOnly, [
  2. List<NullOnly>? defaultValue
])

Implementation

List<enums.NullOnly>? nullOnlyNullableListFromJson(
  List? nullOnly, [
  List<enums.NullOnly>? defaultValue,
]) {
  if (nullOnly == null) {
    return defaultValue;
  }

  return nullOnly.map((e) => nullOnlyFromJson(e.toString())).toList();
}