CurrentWeatherResponse class

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

CurrentWeatherResponse({required DateTime dt, required Coordinate coordinate, required List<Weather> weather, required String base, required ResponseMain main, int? visibility, required Wind wind, required Clouds clouds, Rain? rain, Snow? snow, required Sys sys, required double timezone, required int id, required String name, required int cod})
CurrentWeatherResponse.fromJson(Map<String, dynamic> json)
Connect the generated _$CurrentWeatherResponseFromJson function to the fromJson factory.
factory

Properties

base String
final
clouds Clouds
final
cod int
final
coordinate Coordinate
final
dt DateTime
final
hashCode int
The hash code for this object.
no setterinherited
id int
final
main ResponseMain
final
name String
final
rain Rain?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snow Snow?
final
sys Sys
final
timezone double
final
visibility int?
final
weather List<Weather>
final
wind Wind
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Connect the generated _$CurrentWeatherResponseToJson function to the toJson method.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited