GoogleApi.TravelImpactModel.V1.Model.EmissionsGramsPerPax (google_api_travel_impact_model v0.3.1)

View Source

Grouped emissions per seating class results.

Attributes

  • business (type: integer(), default: nil) - Emissions for one passenger in business class in grams. This field is always computed and populated, regardless of whether the aircraft has business class seats or not.
  • economy (type: integer(), default: nil) - Emissions for one passenger in economy class in grams. This field is always computed and populated, regardless of whether the aircraft has economy class seats or not.
  • first (type: integer(), default: nil) - Emissions for one passenger in first class in grams. This field is always computed and populated, regardless of whether the aircraft has first class seats or not.
  • premiumEconomy (type: integer(), default: nil) - Emissions for one passenger in premium economy class in grams. This field is always computed and populated, regardless of whether the aircraft has premium economy class seats or not.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.TravelImpactModel.V1.Model.EmissionsGramsPerPax{
  business: integer() | nil,
  economy: integer() | nil,
  first: integer() | nil,
  premiumEconomy: integer() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.