5internal class NullableSerializer<T> : BaseSerializer<T?>
7 private readonly ISerializer<T> _inner;
9 public NullableSerializer(ISerializer<T> inner)
14 public override List<FaunaType> GetSupportedTypes() => _inner.GetSupportedTypes();
18 if (reader.CurrentTokenType ==
TokenType.Null)
A class representing the mapping context to be used during serialization and deserialization.
void Serialize(MappingContext ctx, Utf8FaunaWriter writer, object? o)
Serializes the provided object into the Utf8FaunaWriter.
new T Deserialize(MappingContext ctx, ref Utf8FaunaReader reader)
Consumes all or some of a Utf8FaunaReader and returns an instance of T .
object? ISerializer. Deserialize(MappingContext ctx, ref Utf8FaunaReader reader)
Consumes or partially consumes the provided reader and deserializes into a result.
void ISerializer. Serialize(MappingContext context, Utf8FaunaWriter writer, object? o)
Serializes the provided object onto the Utf8FaunaWriter
TokenType
Enumerates the types of tokens used in Fauna serialization.