StationTimings class

Represents the timing info at a station.

Constructors

StationTimings({required String stationCode, required String name, required DayTimings monday, required DayTimings tuesday, required DayTimings wednesday, required DayTimings thursday, required DayTimings friday, required DayTimings saturday, required DayTimings sunday})
Creates a new StationTimings object.
const
StationTimings.empty()
Creates an empty StationTimings object.
StationTimings.fromJson(Map<String, dynamic> json)
Creates a new StationTimings object from JSON data.
factory

Properties

friday DayTimings
The time info for Friday at the station.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this StationTimings object is empty.
no setter
isNotEmpty bool
Whether or not this StationTimings object is not empty.
no setter
monday DayTimings
The time info for Monday at the station.
final
name String
Full name of the station.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saturday DayTimings
The time info for Saturday at the station.
final
stationCode String
Unique code for the station.
final
sunday DayTimings
The time info for Sunday at the station.
final
thursday DayTimings
The time info for Thursday at the station.
final
tuesday DayTimings
The time info for Tuesday at the station.
final
wednesday DayTimings
The time info for Wednesday at the 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 StationTimings object.
toString() String
A string representation of this object.
override

Operators

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