Weather class

Annotations
  • @JsonSerializable()

Constructors

Weather({required int id, required String main, required String description, required String icon})
Weather.fromJson(Map<String, dynamic> json)
Connect the generated _$WeatherFromJson function to the fromJson factory.
factory

Properties

description String
final
hashCode int
The hash code for this object.
no setterinherited
icon String
final
id int
final
main String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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