ShortTermParking class
Represents short-term parking information at a station.
Constructors
- ShortTermParking({required int totalSpaces, String? notes})
- Creates a ShortTermParking object.
- ShortTermParking.empty()
- Creates an empty ShortTermParking object.
-
ShortTermParking.fromJson(Map<
String, dynamic> json) -
Creates a ShortTermParking object from a JSON object.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
Whether or not this ShortTermParking object is empty.
no setter
- isNotEmpty → bool
-
Whether or not this ShortTermParking object is not empty.
no setter
- notes → String?
-
Misc. information relating to short-term parking.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalSpaces → int
-
Number of short-term parking spots available at a station (parking
meters).
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 ShortTermParking object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override