Class PathJsonConverter
- Namespace
- Olve.MinimalApi
- Assembly
- Olve.MinimalApi.dll
Converts IPath instances to and from JSON string representations.
public sealed class PathJsonConverter : JsonConverter<IPath>
- Inheritance
-
PathJsonConverter
- Inherited Members
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads an IPath value from JSON.
public override IPath? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderJSON reader to read from.
typeToConvertTypeThe target type to convert.
optionsJsonSerializerOptionsSerializer options.
Returns
Write(Utf8JsonWriter, IPath, JsonSerializerOptions)
Writes an IPath value as a JSON string.
public override void Write(Utf8JsonWriter writer, IPath value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWriterJSON writer to write to.
valueIPathThe IPath value to serialize.
optionsJsonSerializerOptionsSerializer options.