Parking class
Represents parking information at a station.
Constructors
- Parking({required String stationCode, String? notes, required AllDayParking allDayParking, required ShortTermParking shortTermParking})
- Creates a new Parking instance.
- Parking.empty()
- Creates an empty Parking instance.
-
Parking.fromJson(Map<
String, dynamic> json) -
Creates a new Parking instance from a JSON object.
factory
Properties
- allDayParking → AllDayParking
-
Structure describing all-day parking options.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
Whether or not this Parking object is empty.
no setter
- isNotEmpty → bool
-
Whether or not this Parking object is not empty.
no setter
- notes → String?
-
When not
null
, provides additional parking resources such as nearby lots.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortTermParking → ShortTermParking
-
Structure describing short-term parking options.
final
- stationCode → String
-
Unique identifier for the station associated with this parking
information.
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