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
-
JsonConverterLNURLPayRequest.LNURLPayRequestCallbackResponse.LNURLPayRequestSuccessActionJsonConverter
- Inherited Members
-
JsonConverter.CanReadJsonConverter.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
readerJsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectTypeTypeType of the object.
existingValueLNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessActionThe existing value of object being read. If there is no existing value then
nullwill be used.hasExistingValueboolThe existing value has a value.
serializerJsonSerializerThe 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
writerJsonWriterThe Newtonsoft.Json.JsonWriter to write to.
valueLNURLPayRequest.LNURLPayRequestCallbackResponse.ILNURLPayRequestSuccessActionThe value.
serializerJsonSerializerThe calling serializer.