Skip to content

struct Athena::Framework::Serializer::ComponentSerializer
inherits Struct #

Implements ATH::Serializer::Interface with the Serializer component. The framework uses it if the Serializer bundle is registered.

Types that include JSON::Serializable, but not ASR::Serializable, are (de)serialized via JSON::Serializable instead.

Included modules

Athena::Framework::Serializer::Interface

Constructors#

Methods#

#deserialize(data : IO, type : ASR::Serializable.class, format : String)#

:inherit:

View source

#deserialize(data : IO, type : JSON::Serializable.class, format : String)#

:inherit:

View source

#deserialize(data : IO, type : _, format : String) : Nil#

Returns an instance of type deserialized from the provided data in the provided format, or nil if type is not supported.

View source

#serialize(data : T, format : String, context : ATH::View::Context) : String forall T#

:inherit:

View source