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

How the platform expects the tool to be presented.

All fields are optional. `document_target` indicates the browser context
for the launch — typically `"frame"`, `"iframe"`, or `"window"`, but
unknown values are accepted.

## Examples

    iex> Ltix.LaunchClaims.LaunchPresentation.from_json(%{"document_target" => "iframe"})
    {:ok, %Ltix.LaunchClaims.LaunchPresentation{document_target: "iframe", height: nil, width: nil, return_url: nil, locale: nil}}

# `t`

```elixir
@type t() :: %Ltix.LaunchClaims.LaunchPresentation{
  document_target: binary() | binary(),
  height: number(),
  locale: binary(),
  return_url: binary(),
  width: number()
}
```

# `from_json`

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

Parse a launch presentation claim from a JSON map.

## Examples

    iex> Ltix.LaunchClaims.LaunchPresentation.from_json(%{})
    {:ok, %Ltix.LaunchClaims.LaunchPresentation{document_target: nil, height: nil, width: nil, return_url: nil, locale: nil}}

---

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