PhoenixApiToolkit.TestHelpers.to_string_map

You're seeing just the function to_string_map, go back to PhoenixApiToolkit.TestHelpers module for more information.

Specs

to_string_map(map()) :: map()

Converts a map with atoms in it as keys or values to a map with just strings. Works on nested maps as well.

Examples

iex> %{first_name: "Peter", stuff: %{"things" => :indeed}} |> to_string_map()
%{"first_name" => "Peter", "stuff" => %{"things" => "indeed"}}