Prediction class

Annotations
  • @JsonSerializable()

Constructors

Prediction({String? id, int? operationType, String? vehicleId, String? naptanId, String? stationName, String? lineId, String? lineName, String? platformName, String? direction, String? bearing, String? visitNumber, String? tripId, String? vehicleCdId, String? destinationNaptanId, String? destinationName, DateTime? timestamp, int? timeToStation, String? currentLocation, String? towards, DateTime? expectedArrival, DateTime? timeToLive, String? modeName, DateTime? serverTimestamp, PredictionTiming? timing})
Prediction.fromJson(Map<String, dynamic> json)
factory

Properties

bearing String?
getter/setter pair
currentLocation String?
getter/setter pair
destinationName String?
getter/setter pair
destinationNaptanId String?
getter/setter pair
direction String?
getter/setter pair
expectedArrival DateTime?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
lineId String?
getter/setter pair
lineName String?
getter/setter pair
modeName String?
getter/setter pair
naptanId String?
getter/setter pair
operationType int?
getter/setter pair
platformName String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverTimestamp DateTime?
getter/setter pair
stationName String?
getter/setter pair
timestamp DateTime?
getter/setter pair
timeToLive DateTime?
getter/setter pair
timeToStation int?
getter/setter pair
timing PredictionTiming?
getter/setter pair
towards String?
getter/setter pair
tripId String?
getter/setter pair
vehicleCdId String?
getter/setter pair
vehicleId String?
getter/setter pair
visitNumber String?
getter/setter pair

Methods

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

Operators

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

Static Methods

listFromJson(List json) List<Prediction>
mapFromJson(Map<String, dynamic> json) Map<String, Prediction>