weatherTimePeriodV2NullableListFromJson function
- List? weatherTimePeriodV2, [
- List<
WeatherTimePeriodV2> ? defaultValue
Implementation
List<enums.WeatherTimePeriodV2>? weatherTimePeriodV2NullableListFromJson(
List? weatherTimePeriodV2, [
List<enums.WeatherTimePeriodV2>? defaultValue,
]) {
if (weatherTimePeriodV2 == null) {
return defaultValue;
}
return weatherTimePeriodV2
.map((e) => weatherTimePeriodV2FromJson(e.toString()))
.toList();
}