IRunicBridgeCodec<T> interface

Namespace Runic.Application.Views · Runic.Application 0.7.0-preview.5

public interface IRunicBridgeCodec<T>

Implement this interface with public static methods to define an explicit bridge representation for a type the generated standard codec does not cover. The generator verifies the closed generic type and emits direct static calls, so no codec discovery occurs at runtime.

Methods

Read

static abstract T Read(JsonElement value)

Decodes one JSON value.

Write

static abstract void Write(Utf8JsonWriter writer, T value)

Writes one JSON value.