google_api_discovery v0.1.0 GoogleApi.Discovery.V1.Model.JsonSchemaVariant View Source

In a variant data type, the value of one property is used to determine how to interpret the entire entity. Its value must exist in a map of descriminant values to schema names.

Attributes

  • discriminant (String.t): The name of the type discriminant property. Defaults to: null.
  • map ([JsonSchemaVariantMap]): The map of discriminant value to schema to use for parsing.. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type t() View Source
t() :: %GoogleApi.Discovery.V1.Model.JsonSchemaVariant{
  discriminant: any(),
  map: [GoogleApi.Discovery.V1.Model.JsonSchemaVariantMap.t()]
}

Link to this section Functions

Link to this function decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.