weatherConditionV2NullableListFromJson function

List<WeatherConditionV2>? weatherConditionV2NullableListFromJson(
  1. List? weatherConditionV2, [
  2. List<WeatherConditionV2>? defaultValue
])

Implementation

List<enums.WeatherConditionV2>? weatherConditionV2NullableListFromJson(
  List? weatherConditionV2, [
  List<enums.WeatherConditionV2>? defaultValue,
]) {
  if (weatherConditionV2 == null) {
    return defaultValue;
  }

  return weatherConditionV2
      .map((e) => weatherConditionV2FromJson(e.toString()))
      .toList();
}