Struct (stella v0.7.1)
Documentation for Struct
module.
Link to this section Summary
Link to this section Functions
Link to this function
to_map()
@spec to_map() :: %{}
Converts nested Struct type element to nested Map type
examples
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)
@spec to_map(nil | :maps.iterator(any(), any()) | map()) :: map()