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

Assignment and Grade Services (AGS) endpoint claim.

Provides URLs for managing line items and scores. All fields are optional.

## Examples

    iex> Ltix.LaunchClaims.AgsEndpoint.from_json(%{"lineitems" => "https://example.com/lineitems"})
    {:ok, %Ltix.LaunchClaims.AgsEndpoint{scope: nil, lineitems: "https://example.com/lineitems", lineitem: nil}}

# `t`

```elixir
@type t() :: %Ltix.LaunchClaims.AgsEndpoint{
  lineitem: binary(),
  lineitems: binary(),
  scope: [binary()]
}
```

# `from_json`

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

Parse an AGS endpoint claim from a JSON map.

## Examples

    iex> Ltix.LaunchClaims.AgsEndpoint.from_json(%{})
    {:ok, %Ltix.LaunchClaims.AgsEndpoint{scope: nil, lineitems: nil, lineitem: nil}}

---

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