PgJsonbConverter
Namespace: Ankus.Serialization
Assembly: Ankus.Runtime.dll
Serializes PgJsonb as an embedded JSON value using a statically known AOT-compatible converter.
public sealed class PgJsonbConverter : JsonConverter<PgJsonb>Inheritance: object, JsonConverter, JsonConverter<PgJsonb>
Constructors
Section titled “Constructors”PgJsonbConverter()
Section titled “PgJsonbConverter()”public PgJsonbConverter()Methods
Section titled “Methods”Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Section titled “Read(ref Utf8JsonReader, Type, JsonSerializerOptions)”public override PgJsonb Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)Parameters:
reader — Utf8JsonReader
typeToConvert — Type
options — JsonSerializerOptions
Returns: PgJsonb
Write(Utf8JsonWriter, PgJsonb, JsonSerializerOptions)
Section titled “Write(Utf8JsonWriter, PgJsonb, JsonSerializerOptions)”public override void Write(Utf8JsonWriter writer, PgJsonb value, JsonSerializerOptions options)Parameters:
writer — Utf8JsonWriter
value — PgJsonb
options — JsonSerializerOptions