coolingTypeV2NullableListFromJson function
- List? coolingTypeV2, [
- 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();
}