Fare class abstract

The total fare for the route. { \"currency\" : \"USD\", \"value\" : 6, \"text\" : \"$6.00\" }

Properties:

  • currency - An ISO 4217 currency code indicating the currency that the amount is expressed in.
  • value - The total fare amount, in the currency specified.
  • text - The total fare amount, formatted in the requested language.

Constructors

Fare([void updates(FareBuilder b)])
factory

Properties

currency String
An ISO 4217 currency code indicating the currency that the amount is expressed in.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The total fare amount, formatted in the requested language.
no setter
value num
The total fare amount, in the currency specified.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(FareBuilder)) Fare
Rebuilds the instance.
inherited
toBuilder() FareBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<Fare>
no setter