coolingTypeV2NullableListFromJson function

List<CoolingTypeV2>? coolingTypeV2NullableListFromJson(
  1. List? coolingTypeV2, [
  2. List<CoolingTypeV2>? defaultValue
])

Implementation

List<enums.CoolingTypeV2>? coolingTypeV2NullableListFromJson(
  List? coolingTypeV2, [
  List<enums.CoolingTypeV2>? defaultValue,
]) {
  if (coolingTypeV2 == null) {
    return defaultValue;
  }

  return coolingTypeV2.map((e) => coolingTypeV2FromJson(e.toString())).toList();
}