ActionConverter Class

Definition

By default Json.net doesn't know how to deserialize JSON data into Interfaces or abstract classes. This custom Converter helps deserialize "actions" specified in JSON into respective concrete "action" classes.

public class ActionConverter : Microsoft.Bot.Builder.Calling.ObjectModel.Misc.JsonCreationConverter<Microsoft.Bot.Builder.Calling.ObjectModel.Contracts.ActionBase>
type ActionConverter = class
    inherit JsonCreationConverter<ActionBase>
Public Class ActionConverter
Inherits JsonCreationConverter(Of ActionBase)
Inheritance
Newtonsoft.Json.JsonConverter
ActionConverter

Constructors

ActionConverter()

Properties

CanWrite

Let Newtonsoft.Json use the default writer

(Inherited from JsonCreationConverter<T>)

Methods

CanConvert(Type)

Determines if this converted is designed to deserialization to objects of the specified type.

(Inherited from JsonCreationConverter<T>)
Create(Type, JObject)
ReadJson(JsonReader, Type, Object, JsonSerializer)

Parses the json to the specified type.

(Inherited from JsonCreationConverter<T>)
WriteJson(JsonWriter, Object, JsonSerializer)

Serializes to the specified type

(Inherited from JsonCreationConverter<T>)

Applies to