Line class

Annotations
  • @JsonSerializable()

Constructors

Line({String? id, String? name, String? modeName, List<Disruption>? disruptions, DateTime? created, DateTime? modified, List<LineStatus>? lineStatus, List<MatchedRoute>? routeSections, List<LineServiceTypeInfo>? serviceTypes, Crowding? crowding})
Line.fromJson(Map<String, dynamic> json)
factory

Properties

created DateTime?
getter/setter pair
crowding Crowding?
getter/setter pair
disruptions List<Disruption>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
lineStatus List<LineStatus>?
getter/setter pair
modeName String?
getter/setter pair
modified DateTime?
getter/setter pair
name String?
getter/setter pair
routeSections List<MatchedRoute>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceTypes List<LineServiceTypeInfo>?
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<Line>
mapFromJson(Map<String, dynamic> json) Map<String, Line>