Payeezy.Util (Payeezy v0.1.4)
Link to this section Summary
Functions
Recursively convert a map of string keys into a map with atom keys. Intended to prepare responses for conversion into structs. Note that it only converts strings to known atoms.
Link to this section Functions
Link to this function
atomize(map)
Recursively convert a map of string keys into a map with atom keys. Intended to prepare responses for conversion into structs. Note that it only converts strings to known atoms.
example
Example
iex> Payeezy.Util.atomize(%{"a" => 1, "b" => %{"c" => 2}})
%{a: 1, b: %{c: 2}}