Alert class

Annotations
  • @JsonSerializable(createToJson: false)

Constructors

Alert()
Alert.fromJson(Map<String, dynamic> json)
factory

Properties

description String?
required A detailed description of the alert.
getter/setter pair
expires int?
required The UNIX time at which the alert will expire.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
regions List<String>?
required An array of strings representing the names of the regions covered by this weather alert.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity String?
required The severity of the weather alert. Will take one of the following values: "advisory" (an individual should be aware of potentially severe weather) "watch" (an individual should prepare for potentially severe weather) "warning" (an individual should take immediate action to protect themselves and others from potentially severe weather).
getter/setter pair
time int?
required The UNIX time at which the alert was issued.
getter/setter pair
title String?
required A brief description of the alert.
getter/setter pair
uri String?
required An HTTP(S) URI that one may refer to for detailed information about the alert.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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