TffFare class

Annotations
  • @JsonSerializable(createToJson: false)

Constructors

TffFare({required String status, required double distance, required double duration, required double totalFare, required double initialFare, required double meteredFare, required double tipAmount, required double tipPercentage, required String locale, required _TffCurrency? currency, required String rateArea, required List<TffFlatRate> flatRates, required List<TffExtraCharge> extraCharges})
TffFare.fromJson(Map<String, dynamic> json)
factory

Properties

currency → _TffCurrency?
final
currencySymbol String?
The currency code (ISO 4217) used to calculate the trip fare
no setter
distance double
The trip's distance in meters
final
duration double
The trip's duration in seconds
final
extraCharges List<TffExtraCharge>
A list of extra charges applied to the trip
final
flatRates List<TffFlatRate>
A list of flat rates applied to the trip
final
hashCode int
The hash code for this object.
no setterinherited
initialFare double
The charge for the first portion of the trip
final
locale String
The locale of the city / entity used in the fare calculation, for example en_US
final
meteredFare double
The charge based on the distance of the trip and in addition to the initialFare
final
rateArea String
The name of the area used for the calculation of the trip. Can differ from the city / entity optionally passed to this method.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
final
tipAmount double
The suggested tip amount
final
tipPercentage double
The suggested tip percentage
final
totalFare double
The total fare in the local currency (see currencySymbol) Includes intialFare, meteredFare and tipAmount
final
totalFareWithoutTip double
The total fare in the local currency (see currencySymbol) without the tip. Includes intialFare, meteredFare but excludes tipAmount
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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