weatherConditionV2ListFromJson function
- List? weatherConditionV2, [
- List<
WeatherConditionV2> ? defaultValue
Implementation
List<enums.WeatherConditionV2> weatherConditionV2ListFromJson(
List? weatherConditionV2, [
List<enums.WeatherConditionV2>? defaultValue,
]) {
if (weatherConditionV2 == null) {
return defaultValue ?? [];
}
return weatherConditionV2
.map((e) => weatherConditionV2FromJson(e.toString()))
.toList();
}