BookedSegment constructor

BookedSegment({
  1. BookedAirport? origin,
  2. BookedAirport? destination,
  3. DateTime? departureAt,
  4. DateTime? arrivalAt,
  5. int? durationMinutes,
  6. BookedAirline? marketingCarrier,
  7. String? marketingFlightNumber,
  8. BookedAirline? operatingCarrier,
  9. String? operatingFlightNumber,
  10. Aircraft? aircraft,
  11. BookedSegmentCabinClassEnum? cabinClass,
  12. List<BookedStop> stops = const [],
  13. List<BookedBaggage> baggage = const [],
  14. bool? isCodeshare,
})

Returns a new BookedSegment instance.

Implementation

BookedSegment({
  this.origin,
  this.destination,
  this.departureAt,
  this.arrivalAt,
  this.durationMinutes,
  this.marketingCarrier,
  this.marketingFlightNumber,
  this.operatingCarrier,
  this.operatingFlightNumber,
  this.aircraft,
  this.cabinClass,
  this.stops = const [],
  this.baggage = const [],
  this.isCodeshare,
});