Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.84 KB

File metadata and controls

36 lines (27 loc) · 1.84 KB

TravelAirFlightsDepartureAndDestination

Properties

Name Type Description Notes
type str
activity str [optional] [default to 'flights']
specification str [optional] [default to 'average']
detail str Hint: Some specifications only support certain details. [optional] [default to 'average']
departure str City, Postal Address, Train Station or IATA Code of the departure address
destination str City, Postal Address, Train Station or IATA Code of the destination address
return_trip bool Decide if the trip is one way or return [optional] [default to True]
passengers int The total of passengers travelling this route [optional] [default to 1]

Example

from klimapi_python.models.travel_air_flights_departure_and_destination import TravelAirFlightsDepartureAndDestination

# TODO update the JSON string below
json = "{}"
# create an instance of TravelAirFlightsDepartureAndDestination from a JSON string
travel_air_flights_departure_and_destination_instance = TravelAirFlightsDepartureAndDestination.from_json(json)
# print the JSON string representation of the object
print(TravelAirFlightsDepartureAndDestination.to_json())

# convert the object into a dict
travel_air_flights_departure_and_destination_dict = travel_air_flights_departure_and_destination_instance.to_dict()
# create an instance of TravelAirFlightsDepartureAndDestination from a dict
travel_air_flights_departure_and_destination_from_dict = TravelAirFlightsDepartureAndDestination.from_dict(travel_air_flights_departure_and_destination_dict)

[Back to Model list] [Back to API list] [Back to README]