IJsonWritableConverter<TValue, TWritableProxy>

Namespace: SnowBank.Data.Json · interface

Implements: IJsonConverter<TValue>, IJsonConverter, IJsonSerializer<TValue>, IJsonDeserializer<TValue>, IJsonPacker<TValue>

Bundle interface that is implemented by source-generated encoders for writable proxies.

Methods

ToMutable

TWritableProxy ToMutable(JsonValue value)

Wraps the specified JSON value into a writable proxy

  • value — Underlying JSON value

Returns: Proxy that exposes the value using typed properties.

TWritableProxy ToMutable(TValue instance)

Wraps a TValue instance with a writable proxy

  • instance — Instance that will be converted to JSON

Returns: Proxy that exposes the equivalent JSON value, using typed properties.

TWritableProxy ToMutable(IMutableJsonContext context, JsonValue value)

Wraps the specified JSON value into a writable proxy

  • context — Context that will record all access to the writable proxy
  • value — Underlying JSON value

Returns: Proxy that exposes the value using typed properties.

TWritableProxy ToMutable(IMutableJsonContext context, TValue instance)

Wraps a TValue instance with a writable proxy

  • context — Context that will record all access to the writable proxy
  • instance — Instance that will be converted to JSON

Returns: Proxy that exposes the equivalent JSON value, using typed properties.