JsonUnionSerializerBuilderCase class

Implements a JsonSerializerBuilder case that matches UnionSchema and attempts to map it to any provided type.
AssemblyChr.Avro.Json
NamespaceChr.Avro.Serialization
Signature
public class JsonUnionSerializerBuilderCase : Chr.Avro.Serialization.UnionSerializerBuilderCase, Chr.Avro.Serialization.IJsonSerializerBuilderCase, Chr.Avro.Serialization.ISerializerBuilderCase<Chr.Avro.Serialization.JsonSerializerBuilderContext,Chr.Avro.Serialization.JsonSerializerBuilderCaseResult>
BaseUnionSerializerBuilderCase
InterfacesIJsonSerializerBuilderCase
ISerializerBuilderCase<JsonSerializerBuilderContext, JsonSerializerBuilderCaseResult>

Constructors

JsonUnionSerializerBuilderCase(IJsonSerializerBuilder)
Initializes a new instance of the JsonUnionSerializerBuilderCase class.

Properties

IJsonSerializerBuilder SerializerBuilder
Gets the serializer builder instance that will be used to build child serializers.

Methods

JsonSerializerBuilderCaseResult BuildExpression(Expression, Type, Schema, JsonSerializerBuilderContext)
Builds a JsonSerializer<> for a UnionSchema.
string GetSchemaName(Schema)
Gets the name of the property used to disambiguate a union.
Chr.Avro