module Athena::Serializer::SerializerInterface

Overview

The main entrypoint of Athena::Serializer.

Direct including types

Defined in:

serializer_interface.cr

Instance Method Summary

Instance Method Detail

abstract def deserialize(type : ASR::Model.class, data : String | IO, format : ASR::Format | String, context : ASR::DeserializationContext = ASR::DeserializationContext.new) #

Deserializes the provided input_data in the provided format into an instance of type, optionally with the provided context.


[View source]
abstract def serialize(data : _, format : ASR::Format | String, io : IO, context : ASR::SerializationContext = ASR::SerializationContext.new, **named_args) : Nil #

Serializes the provided data into format writing it to the provided io, optionally with the provided context.=


[View source]
abstract def serialize(data : _, format : ASR::Format | String, context : ASR::SerializationContext = ASR::SerializationContext.new, **named_args) : String #

Serializes the provided data into format, optionally with the provided context.


[View source]