# 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.ShapeResource do
@moduledoc """
Sequence of geographic points representing a path vehicles will travel on a trip. See [GTFS `shapes.txt`](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#shapestxt).
"""
@derive Jason.Encoder
defstruct [
:type,
:relationships,
:links,
:id,
:attributes
]
@type t :: %__MODULE__{
:type => String.t | nil,
:relationships => map() | nil,
:links => map() | nil,
:id => String.t | nil,
:attributes => MBTA.Model.ShapeResourceAttributes.t | nil
}
alias MBTA.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:attributes, :struct, MBTA.Model.ShapeResourceAttributes)
end
end