Packages

Elixir HTTP client for the X API v2.

Current section

Files

Jump to
x_api_ex lib x_api_ex model place_geo_geometry.ex
Raw

lib/x_api_ex/model/place_geo_geometry.ex

defmodule XApiEx.Model.Place.Geo.Geometry do
@moduledoc """
GeoJSON geometry for a place.
"""
@derive JSON.Encoder
defstruct [
:coordinates,
:type
]
@type t :: %__MODULE__{
:coordinates => [number()] | nil,
:type => String.t() | nil
}
@doc "Returns the value unchanged; this model has no nested structs to deserialize."
@spec decode(map()) :: t()
def decode(value) do
value
end
end