toMap method

  1. @override
Map<String, Object> toMap ()

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    'relativeHumidity': this.relativeHumidity,
    'dataTime': this.dataTime,
    'windDirection': this.windDirection,
    'windPower': this.windPower,
    'temperature': this.temperature,
    'clouds': this.clouds,
    'phenomenon': this.phenomenon,
    'hourlyPrecipitation': this.hourlyPrecipitation
  };
}