Forecast.fromMap constructor

Forecast.fromMap(
  1. Map<String, dynamic> map
)

Implementation

Forecast.fromMap(Map<String, dynamic> map) {
  fxTime = map['fxTime'] as String;
  lon = map['lon'] as String;
  lat = map['lat'] as String;
  type = map['type'] as String;
  pressure = map['pressure'] as String;
  windSpeed = map['windSpeed'] as String;
  moveSpeed = map['moveSpeed'] as String;
  moveDir = map['moveDir'] as String;
  move360 = map['move360'] as String? ?? '';
}