annotation Athena::Serializer::Annotations::Skip
#
Indicates that a property should not be serialized or deserialized.
Example#
class Example
include ASR::Serializable
def initialize; end
property name : String = "Jim"
@[ASRA::Skip]
property password : String = "monkey"
end
ASR.serializer.deserialize Example, %({"name":"Fred","password":"foobar"}), :json # => #<Example:0x7fe4dc98bce0 @name="Fred", @password="monkey">
ASR.serializer.serialize Example.new, :json # => {"name":"Fred"}