View Source SmartCity.AccessGroup (smart_city v6.0.0)

Struct defining an access group update event.

const AccessGroup = {
  "description": "",
  "name"": "",
  "id": ""
}

Link to this section Summary

Functions

Returns a new SmartCity.AccessGroup struct.

Link to this section Types

@type id() :: term()
@type reason() :: term()
@type t() :: %SmartCity.AccessGroup{description: term(), id: term(), name: term()}

Link to this section Functions

@spec new(String.t() | map()) :: {:ok, map()} | {:error, term()}

Returns a new SmartCity.AccessGroup struct.

Can be created from:

  • map with string keys
  • map with atom keys
  • JSON