View Source Statestores.Schemas.ValueObjectSchema (spawn_statestores v0.5.3)

Models a value object. A value object is one that has no identity. It is mostly used as an embedded object.

Link to this section Summary

Functions

Transforms a struct and its inner fields to atom-maps

Link to this section Functions

Link to this function

to_map(instance, key_type \\ :atom_keys)

View Source
@spec to_map(instance :: map(), key_type :: :string_keys | :atom_keys) :: map()

Transforms a struct and its inner fields to atom-maps