Table of Contents

Class LNURLPayRequest.LNURLPayRequestCallbackResponse.LNURLPayRequestSuccessActionJsonConverter

Namespace
LNURL
Assembly
LNURL.Core.dll

Newtonsoft.Json converter for polymorphic deserialization of LNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessAction based on the tag property (LUD-09).

public class LNURLPayRequest.LNURLPayRequestCallbackResponse.LNURLPayRequestSuccessActionJsonConverter : JsonConverter<LNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessAction>
Inheritance
JsonConverter
LNURLPayRequest.LNURLPayRequestCallbackResponse.LNURLPayRequestSuccessActionJsonConverter
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite

Methods

ReadJson(JsonReader, Type, ILNURLPayRequestSuccessAction, bool, JsonSerializer)

Reads the JSON representation of the object.

public override LNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessAction ReadJson(JsonReader reader, Type objectType, LNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessAction existingValue, bool hasExistingValue, JsonSerializer serializer)

Parameters

reader JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType Type

Type of the object.

existingValue LNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessAction

The existing value of object being read. If there is no existing value then null will be used.

hasExistingValue bool

The existing value has a value.

serializer JsonSerializer

The calling serializer.

Returns

LNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessAction

The object value.

WriteJson(JsonWriter, ILNURLPayRequestSuccessAction, JsonSerializer)

Writes the JSON representation of the object.

public override void WriteJson(JsonWriter writer, LNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessAction value, JsonSerializer serializer)

Parameters

writer JsonWriter

The Newtonsoft.Json.JsonWriter to write to.

value LNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessAction

The value.

serializer JsonSerializer

The calling serializer.