# `Stripe.Deserializer`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/deserializer.ex#L1)

Deserializes JSON strings and raw maps into typed Stripe structs.

Used internally by the client to cast API responses. Also provides
`from_json/1` for manual deserialization of JSON payloads.

# `cast`

```elixir
@spec cast(
  map() | list() | term(),
  keyword()
) :: struct() | map() | list() | term()
```

# `from_json`

```elixir
@spec from_json(
  String.t(),
  keyword()
) :: {:ok, term()} | {:error, term()}
```

Decode a JSON string and cast into typed structs.

---

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