StationToStation class
Information about a station to station journey.
Constructors
- StationToStation({required String startStation, required String destinationStation, required double compositeMiles, required RailFare railFare, required int travelTimeMinutes})
- Creates a new StationToStation object.
- StationToStation.empty()
- Creates an empty StationToStation object.
-
StationToStation.fromJson(Map<
String, dynamic> json) -
Creates a new StationToStation object from a JSON object.
factory
Properties
- compositeMiles → double
-
Average of distance traveled between two stations and straight-line
distance (as used for WMATA fare calculations).
final
- destinationStation → String
-
The unique identifier for the destination station.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
Whether or not this StationToStation object is empty.
no setter
- isNotEmpty → bool
-
Whether or not this StationToStation object is not empty.
no setter
- railFare → RailFare
-
The fare information for this journey.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startStation → String
-
The unique identifier for the start station.
final
- travelTimeMinutes → int
-
Estimated travel time (schedule time) in minutes between the start and
destination station.
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