Skip to content

simpleotp.converters.otpalgorithmjsonconverter

Eugene Fox edited this page Sep 18, 2024 · 1 revision

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

Clone this wiki locally