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

OtpSecretJsonConverter

Namespace: SimpleOTP.Converters

Provides a JSON converter for OtpSecret.

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

Inheritance Object → JsonConverter → JsonConverter<OtpSecret> → OtpSecretJsonConverter
Attributes NullableContextAttribute, NullableAttribute

Properties

HandleNull

public bool HandleNull { get; }

Property Value

Boolean

Type

public Type Type { get; }

Property Value

Type

Constructors

OtpSecretJsonConverter()

public OtpSecretJsonConverter()

Methods

Read(Utf8JsonReader&, Type, JsonSerializerOptions)

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

Parameters

reader Utf8JsonReader&

typeToConvert Type

options JsonSerializerOptions

Returns

OtpSecret

Write(Utf8JsonWriter, OtpSecret, JsonSerializerOptions)

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

Parameters

writer Utf8JsonWriter

value OtpSecret

options JsonSerializerOptions