# NOTE: This file is auto generated by googly. Do not edit it manually. defmodule Googly.CloudVision.Model.LatLongRect do @moduledoc """ Rectangle determined by min and max `LatLng` pairs. ## Attributes * `max_lat_lng` (*type:* `Googly.CloudVision.Model.LatLng.t()`) - Max lat/long pair. * `min_lat_lng` (*type:* `Googly.CloudVision.Model.LatLng.t()`) - Min lat/long pair. """ defstruct [:max_lat_lng, :min_lat_lng] @type t :: %__MODULE__{ max_lat_lng: Googly.CloudVision.Model.LatLng.t() | nil, min_lat_lng: Googly.CloudVision.Model.LatLng.t() | nil } @wire %{max_lat_lng: "maxLatLng", min_lat_lng: "minLatLng"} @doc false def __wire__, do: @wire @doc false def decode(nil), do: nil def decode(list) when is_list(list), do: Enum.map(list, &decode/1) def decode(m) do %__MODULE__{ max_lat_lng: Googly.CloudVision.Model.LatLng.decode(m["maxLatLng"]), min_lat_lng: Googly.CloudVision.Model.LatLng.decode(m["minLatLng"]) } end end