CitraClient.Schemas.FrequencyRangeMhz (citra_client v0.3.0)

View Source

A frequency range defined by min and max values in MHz.

Fields

  • :max_mhznumber() (API key: maxMhz) — Maximum frequency in MHz
  • :min_mhznumber() (API key: minMhz) — Minimum frequency in MHz

Summary

Functions

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.

Types

t()

@type t() :: %CitraClient.Schemas.FrequencyRangeMhz{
  max_mhz: number() | nil,
  min_mhz: number() | nil
}

Functions

from_api(data)

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

to_api(struct)

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.