OperationOutcomeConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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>) |