1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00
1
simpleotp.converters.otpconfigjsonconverter
Eugene Fox edited this page 2024-09-18 16:16:09 +03:00

OtpConfigJsonConverter

Namespace: SimpleOTP.Converters

Provides a JSON converter for OtpConfig.

public class OtpConfigJsonConverter : System.Text.Json.Serialization.JsonConverter`1[[SimpleOTP.OtpConfig, SimpleOTP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → JsonConverter → JsonConverter<OtpConfig> → OtpConfigJsonConverter
Attributes NullableContextAttribute, NullableAttribute

Properties

HandleNull

public bool HandleNull { get; }

Property Value

Boolean

Type

public Type Type { get; }

Property Value

Type

Constructors

OtpConfigJsonConverter()

public OtpConfigJsonConverter()

Methods

Read(Utf8JsonReader&, Type, JsonSerializerOptions)

public OtpConfig Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader&

typeToConvert Type

options JsonSerializerOptions

Returns

OtpConfig

Write(Utf8JsonWriter, OtpConfig, JsonSerializerOptions)

public void Write(Utf8JsonWriter writer, OtpConfig value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

value OtpConfig

options JsonSerializerOptions