View Source GoogleApi.Content.V2.Model.Weight (google_api_content v0.66.0)

Attributes

  • unit (type: String.t, default: nil) - Required. The weight unit. Acceptable values are: - "kg" - "lb"
  • value (type: String.t, default: nil) - Required. The weight represented as a number. The weight can have a maximum precision of four decimal places.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V2.Model.Weight{
  unit: String.t() | nil,
  value: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.