Leg class

Annotations
  • @JsonSerializable()

Constructors

Leg({int? duration, String? speed, Instruction? instruction, List<Obstacle>? obstacles, DateTime? departureTime, DateTime? arrivalTime, Point1? departurePoint, Point1? arrivalPoint, Path? path, List<RouteOption>? routeOptions, Identifier? mode, List<Disruption>? disruptions, List<PlannedWork>? plannedWorks, double? distance})
Leg.fromJson(Map<String, dynamic> json)
factory

Properties

arrivalPoint Point1?
getter/setter pair
arrivalTime DateTime?
getter/setter pair
departurePoint Point1?
getter/setter pair
departureTime DateTime?
getter/setter pair
disruptions List<Disruption>?
getter/setter pair
distance double?
getter/setter pair
duration int?
getter/setter pair
hasFixedLocations bool
no setter
hashCode int
The hash code for this object.
no setterinherited
instruction Instruction?
getter/setter pair
isDisrupted bool
no setter
mode Identifier?
getter/setter pair
obstacles List<Obstacle>?
getter/setter pair
path Path?
getter/setter pair
plannedWorks List<PlannedWork>?
getter/setter pair
routeOptions List<RouteOption>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed 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<Leg>
mapFromJson(Map<String, dynamic> json) Map<String, Leg>