Skip to content

IEncodable

[<Interface>]
type IEncodable =
    abstract member Encode<'JsonValue> (helpers: IEncoderHelpers<'JsonValue>) : 'JsonValue
AssemblyRanvier.Wire

A value which knows how to write itself as JSON.

The method is generic over the JSON type, so what an encoder builds can be written by every runtime.

Methods

abstract member Encode<'JsonValue> (helpers: IEncoderHelpers<'JsonValue>) : 'JsonValue