API Browser

Method

Read

virtual override func Read(ref reader: Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions) -> Optional<T>

Declaring type: OptionalJsonConverter<T>
Namespace: System
Assembly: Raven.Core.dll
Source file: Optional.rvn

Overrides JsonConverter<Optional<T>>.Read

Reads null as None and any other JSON value as Some.

Parameters

Name Type Description
reader ref Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Return value

Optional<T>