# `AccessGrid.CardTemplatePair`
[🔗](https://github.com/Access-Grid/accessgrid-ex/blob/main/lib/access_grid/card_template_pair.ex#L1)

Full representation of a template pair, as returned by
`AccessGrid.Console.read_template/2` when the resolved id belongs to a pair.

The same `card-templates/:id` endpoint serves both single templates and pairs;
the server marks pairs with `is_pair: true` and embeds the full member templates
under `templates`. For the lightweight list-view shape, see
`AccessGrid.CardTemplatePair.Summary`.

# `t`

```elixir
@type t() :: %AccessGrid.CardTemplatePair{
  id: String.t() | nil,
  name: String.t() | nil,
  templates: [AccessGrid.CardTemplate.t()]
}
```

# `from_response`

```elixir
@spec from_response(map()) :: t()
```

Creates a CardTemplatePair struct from an API response map.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
