# `Ltix.LaunchClaims.Context`
[🔗](https://github.com/DecoyLex/ltix/blob/main/lib/ltix/launch_claims/context.ex#L1)

The context (e.g. course or section) in which the launch occurs.

`id` is required and uniquely identifies the context within a deployment.

## Examples

    iex> Ltix.LaunchClaims.Context.from_json(%{"id" => "ctx-1", "label" => "CS101"})
    {:ok, %Ltix.LaunchClaims.Context{id: "ctx-1", label: "CS101", title: nil, type: nil}}

# `t`

```elixir
@type t() :: %Ltix.LaunchClaims.Context{
  id: binary(),
  label: binary(),
  title: binary(),
  type: [binary()]
}
```

# `from_json`

```elixir
@spec from_json(map()) :: {:ok, t()} | {:error, Exception.t()}
```

Parse a context claim from a JSON map.

## Examples

    iex> Ltix.LaunchClaims.Context.from_json(%{"id" => "ctx-1"})
    {:ok, %Ltix.LaunchClaims.Context{id: "ctx-1", label: nil, title: nil, type: nil}}

---

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