TripModel class

Constructors

TripModel({required String? id, List<FlightModel>? flights, int? totalDuration, int? stops, double? mileageCost, double? totalTaxes, String? currency, double? onlinePrice, double? discountedPrice, String? discountedPercentage})
TripModel.fromJson(Map<String, dynamic> json)

Properties

currency ↔ String?
getter/setter pair
discountedPercentage ↔ String?
getter/setter pair
discountedPrice ↔ double?
getter/setter pair
flights ↔ List<FlightModel>?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
getter/setter pair
mileageCost ↔ double?
getter/setter pair
onlinePrice ↔ double?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stops ↔ int?
getter/setter pair
totalDuration ↔ int?
getter/setter pair
totalTaxes ↔ double?
getter/setter pair

Methods

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

Operators

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