BusIncident class

Represents a bus incident.

Constructors

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

Properties

affectedRoutes List<String>
Array containing routes affected.
final
description String
Free-text description of the delay or 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 BusIncident is empty.
no setter
isNotEmpty bool
Whether or not this BusIncident 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 object representing this BusIncident.
toString() String
A string representation of this object.
override

Operators

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