OperationOutcomeConverter Class

Definition

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

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

Constructors

OperationOutcomeConverter()

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