weatherTimePeriodDTONullableListFromJson function
- List? weatherTimePeriodDTO, [
- List<
WeatherTimePeriodDTO> ? defaultValue
Implementation
List<enums.WeatherTimePeriodDTO>? weatherTimePeriodDTONullableListFromJson(
List? weatherTimePeriodDTO, [
List<enums.WeatherTimePeriodDTO>? defaultValue,
]) {
if (weatherTimePeriodDTO == null) {
return defaultValue;
}
return weatherTimePeriodDTO
.map((e) => weatherTimePeriodDTOFromJson(e.toString()))
.toList();
}