stella v0.6.0 Struct
Documentation for Struct
module.
Link to this section Summary
Link to this section Functions
Link to this function
to_map()
Specs
to_map() :: %{}
Converts nested Struct type element to nested Map type
Examples
iex> Struct.to_map(%{a: 1, b: 2})
%{a: 1, b: 2}
iex> Struct.to_map(%{a: 1, b: 2})
%{a: 1, b: 2}
iex> Struct.to_map()
%{}
iex> Struct.to_map(nil)
%{}
Link to this function
to_map(map)
Specs
to_map(nil | :maps.iterator(any(), any()) | map()) :: map()