View Source Statestores.Schemas.ValueObjectSchema (spawn_statestores v2.0.0-RC8)

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

Summary

Functions

Transforms a struct and its inner fields to atom-maps

Functions

to_map(instance, key_type \\ :atom_keys)

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

Transforms a struct and its inner fields to atom-maps