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

OtpAlgorithmJsonConverter

Namespace: SimpleOTP.Converters

Provides a JSON converter for OtpAlgorithm.

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

Inheritance Object → JsonConverter → JsonConverter<OtpAlgorithm> → OtpAlgorithmJsonConverter
Attributes NullableContextAttribute, NullableAttribute

Properties

HandleNull

public bool HandleNull { get; }

Property Value

Boolean

Type

public Type Type { get; }

Property Value

Type

Constructors

OtpAlgorithmJsonConverter()

public OtpAlgorithmJsonConverter()

Methods

Read(Utf8JsonReader&, Type, JsonSerializerOptions)

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

Parameters

reader Utf8JsonReader&

typeToConvert Type

options JsonSerializerOptions

Returns

OtpAlgorithm

Write(Utf8JsonWriter, OtpAlgorithm, JsonSerializerOptions)

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

Parameters

writer Utf8JsonWriter

value OtpAlgorithm

options JsonSerializerOptions