toJson method

Map<String, dynamic> toJson()

Returns a Map with the object data

Implementation

Map<String, dynamic> toJson() {
  return {
    'speed': speed,
    'deg': deg,
    'gust': gust,
  };
}