# `Jido.Chat.ModalResult`
[🔗](https://github.com/agentjido/jido_chat/blob/v1.0.0/lib/jido/chat/modal_result.ex#L1)

Typed normalized modal-open result.

# `t`

```elixir
@type t() :: %Jido.Chat.ModalResult{
  external_message_id: nil | nil | binary(),
  external_room_id: nil | nil | any(),
  id: binary(),
  metadata: map(),
  raw: nil | nil | any(),
  status: :opened | :accepted | :failed
}
```

# `from_map`

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

Builds modal result from serialized data.

# `new`

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

Creates a normalized modal result.

# `schema`

Returns the Zoi schema for ModalResult.

# `to_map`

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

Serializes modal result into plain map with type marker.

---

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