ApiError class

Errors information when the data cannot be obtained.

Constructors

ApiError({required int code, required String message})
Define a ApiError class.
const
ApiError.fromJson(Map<String, dynamic> json)
Factory that returns ApiError class from json Map.
factory

Properties

code int
Error code, check https://openweathermap.org/faq#api-errors for all errors.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Error resume. check https://openweathermap.org/faq#api-errors for all errors.
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>
Returns a map of the class.
toString() String
A string representation of this object.
inherited

Operators

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