WeatherMsg.from constructor
WeatherMsg.from(
- Map data
Implementation
WeatherMsg.from(Map data)
: city = data['t'] ?? '',
description = data['st'] ?? '',
data = WeatherMsg.getData(data);
WeatherMsg.from(Map data)
: city = data['t'] ?? '',
description = data['st'] ?? '',
data = WeatherMsg.getData(data);