# LibTmux.Filter.from_wire/3

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/66b9b1c3f3f3186428abdfda2c76f5cf87446710/lib/libtmux/filter.ex#L123
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-filter-from_wire-3/

```
from_wire(entity, payload, options \\ [])
@spec from_wire(LibTmux.Schema.entity_selector(), term(), [
        limit_option()
      ]) ::
        {:ok, t()} | {:error, LibTmux.Error.t()}
```

Decodes a whitelisted versioned map; raw JSON must use from_json to retain duplicate keys.

See the [worked example](api-examples.html#local-graph-and-filtering).

## Parameters

- `entity` (`LibTmux.Schema.entity_selector()`)
- `payload` (`term()`)
- `options` (`[limit_option()]`)
