# How to get struct from map - elixir?

**URL:** <https://forum.elixirforum.com/t/how-to-get-struct-from-map-elixir/4543>\
**Category:** Questions\
**Tags:** ecto, maps, structs, phoenix\
**Created:** [April 10, 2017, 6:48am UTC](https://forum.elixirforum.com/t/how-to-get-struct-from-map-elixir/4543 "2017-04-10T06:48:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![manukall](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/manukall/32/20326_2.png) [@manukall](https://forum.elixirforum.com/u/manukall)\
**Post date:** [April 10, 2017, 6:54am UTC](https://forum.elixirforum.com/t/how-to-get-struct-from-map-elixir/4543/2 "2017-04-10T06:54:29Z")

</div>

That’s what [Kernel — Elixir v1.20.2](https://hexdocs.pm/elixir/Kernel.html#struct/2) does.

---

_[View the full topic](https://forum.elixirforum.com/t/how-to-get-struct-from-map-elixir/4543)._
