Operate v0.1.0-beta.15 Operate.Util View Source
A collection of commonly used helper functions.
Link to this section Summary
Functions
Converts the given map into a struct. Must be used with a struct that has
previously been serialised into a map with stringified keys and still contains
the "__struct__"
key.
Link to this section Functions
Specs
Converts the given map into a struct. Must be used with a struct that has
previously been serialised into a map with stringified keys and still contains
the "__struct__"
key.
Examples
iex> test = Operate.Util.restruct(%{"__struct__" => "Elixir.Operate.Cell"})
...> test.__struct__ == Operate.Cell
true