Support serialization through #to_hash and #to_h and deserialization
through augmenting the constructor. The plugin can be used in the
following two ways:
include SmartProperties(SmartProperties::Plugins::HashSerialization)
include SmartProperties(SmartProperties::Plugins::HashSerialization.without_optionals)
In the latter case, #to_hash will remove all keys that point to a
nil value during serialization.
Support serialization through
#to_hash
and#to_h
and deserialization through augmenting the constructor. The plugin can be used in the following two ways:include SmartProperties(SmartProperties::Plugins::HashSerialization)
include SmartProperties(SmartProperties::Plugins::HashSerialization.without_optionals)
In the latter case,
#to_hash
will remove all keys that point to anil
value during serialization.