WeatherSituation.fromMap constructor

WeatherSituation.fromMap(
  1. Map<String, dynamic> jsonMap
)

Creates an instance of the class from a provided Map object.

Implementation

factory WeatherSituation.fromMap(Map<String, dynamic> jsonMap) =>
    WeatherSituation(
      city: City.fromMap(jsonMap[_Param.city]),
      situation: Situation.fromMap(jsonMap[_Param.situation]),
    );