# `Sofa.View.Row`
[🔗](https://github.com/skunkwerks/sofa/blob/0.8.1/lib/sofa/view.ex#L40)

One row of a view result. `doc` is set with `include_docs: true`.

# `t`

```elixir
@type t() :: %Sofa.View.Row{
  doc: Sofa.Doc.t() | nil,
  error: String.t() | nil,
  id: String.t() | nil,
  key: term(),
  value: term()
}
```

# `from_map`

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

A row from its JSON object. A `doc` becomes a `%Sofa.Doc{}`, a missing key an error.

---

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