Packages

Library application for Exred. Handles storage and access of flows.

Current section

Files

Jump to
exred_library lib exred_library utils.ex
Raw

lib/exred_library/utils.ex

defmodule Exred.Library.Utils do
def convert_to_atom_map(map), do: to_atom_map(map)
defp to_atom_map(map) when is_map(map), do: Map.new(map, fn {k,v} -> {String.to_existing_atom(k), to_atom_map(v)} end)
defp to_atom_map(v), do: v
end