JSON API response to Structs using Ecto Schema

Thanks for the example @tme_317. This may help me figure it out. I’m just not seeing anywhere that dictates user["_embedded"]["addresses"] would be mapped to %User{addresses: ...} instead of %User{_embedded: %{addresses: ...}} . My lack of familiarity with Ecto probably doesn’t help either.