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