weatherConditionV2ListToJson function
- List<
WeatherConditionV2> ? weatherConditionV2
Implementation
List<String> weatherConditionV2ListToJson(
List<enums.WeatherConditionV2>? weatherConditionV2) {
if (weatherConditionV2 == null) {
return [];
}
return weatherConditionV2.map((e) => e.value!).toList();
}