github gitlab twitter linkedin email
Today I Learned : Elixir - How to get a map from a struct
Sep 22, 2017
One minute read

Use the Map.from_struct function.

struct = %User{first_name: "Jose", last_name: "Valim"}
map = Map.form_struct(struct)


Back to posts