# NOTE: This file is auto generated by OpenAPI Generator 7.1.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule MBTA.Model.FacilityResource do
@moduledoc """
Amenities at a station stop (`*/relationships/stop`) such as elevators, escalators, parking lots, and bike storage. An [MBTA extension](https://groups.google.com/forum/#!topic/gtfs-changes/EzC5m9k45pA). This spec is not yet finalized. ## Accessibility Riders with limited mobility can search any facility, either `ELEVATOR` or `ESCALATOR`, while riders that need wheelchair access can search for `ELEVATOR` only. The lack of an `ELEVATOR` MAY NOT make a stop wheelchair inaccessible. Riders should check `/stops/{id}` `/data/attributes/wheelchair_boarding` is `1` to guarantee a path is available from the station entrance to the stop or `0` if it MAY be accessible. Completely avoid `2` as that is guaranteed to be INACCESSIBLE.
"""
@derive Jason.Encoder
defstruct [
:type,
:relationships,
:links,
:id,
:attributes
]
@type t :: %__MODULE__{
:type => String.t | nil,
:relationships => MBTA.Model.FacilityResourceRelationships.t | nil,
:links => map() | nil,
:id => String.t | nil,
:attributes => MBTA.Model.FacilityResourceAttributes.t | nil
}
alias MBTA.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:relationships, :struct, MBTA.Model.FacilityResourceRelationships)
|> Deserializer.deserialize(:attributes, :struct, MBTA.Model.FacilityResourceAttributes)
end
end