RailIncident class

Represents a rail incident.

Constructors

RailIncident({required DateTime timeOfLastUpdate, required String description, required String incidentId, required String incidentType, required List<String> affectedLines})
Creates a RailIncident object.
RailIncident.empty()
Creates an empty RailIncident object.
RailIncident.fromJson(Map<String, dynamic> json)
Creates a RailIncident object from a JSON object.
factory

Properties

affectedLines List<String>
Array containing lines affected.
final
description String
Free-text description of the incident.
final
hashCode int
The hash code for this object.
no setteroverride
incidentId String
Unique identifier for an incident.
final
incidentType String
Free-text description of the incident type.
final
isEmpty bool
Whether or not this RailIncident object is empty.
no setter
isNotEmpty bool
Whether or not this RailIncident object is not empty.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeOfLastUpdate DateTime
Date and time (Eastern Standard Time) of last update.
final

Methods

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

Operators

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