How to get struct from map - elixir?

Keys from the map must be atoms, as only atoms are allowed in struct definition.