Current section
Files
Jump to
Current section
Files
lib/googly/cloud_vision/model/property.ex
# NOTE: This file is auto generated by googly. Do not edit it manually.
defmodule Googly.CloudVision.Model.Property do
@moduledoc """
A `Property` consists of a user-supplied name/value pair.
## Attributes
* `name` (*type:* `String.t()`) - Name of the property.
* `uint64_value` (*type:* `String.t()`) - Value of numeric properties.
* `value` (*type:* `String.t()`) - Value of the property.
"""
defstruct [:name, :uint64_value, :value]
@type t :: %__MODULE__{
name: String.t() | nil,
uint64_value: String.t() | nil,
value: String.t() | nil
}
@wire %{uint64_value: "uint64Value"}
@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__{
name: m["name"],
uint64_value: m["uint64Value"],
value: m["value"]
}
end
end