WeatherAlert class

Model represents national weather alerts.

This alerts from major national weather warning systems.

Constructors

WeatherAlert(Map<String, dynamic> _weatherData, {required String? senderName, required String? event, required DateTime? start, required DateTime? end, required String? description, required List<String>? tags})
WeatherAlert.fromJson(Map<String, dynamic> jsonData)
Creating WeatherAlert instance from json.
factory

Properties

description String?
Description of the alert.
final
end DateTime?
Date and time of the end of the alert, Unix, UTC.
final
event String?
Alert event name.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderName String?
Name of the alert source.
final
start DateTime?
Date and time of the start of the alert, Unix, UTC.
final
tags List<String>?
Type of severe weather.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
The original JSON data from the API.
toString() String
A string representation of this object.
override

Operators

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