Payeezy v0.1.3 Payeezy.Util

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)
atomize(map) :: 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

iex> Payeezy.Util.atomize(%{"a" => 1, "b" => %{"c" => 2}})
%{a: 1, b: %{c: 2}}