Share via


JsonField Class

Definition

This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'id', 'topic' and 'eventtime' properties. This represents a field in the input event schema.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.JsonFieldTypeConverter))]
public class JsonField : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonField
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.JsonFieldTypeConverter))>]
type JsonField = class
    interface IJsonField
    interface IJsonSerializable
Public Class JsonField
Implements IJsonField
Inheritance
JsonField
Attributes
Implements

Constructors

JsonField()

Creates an new JsonField instance.

Properties

SourceField

Name of a field in the input event schema that's to be used as the source of a mapping.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of JsonField.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of JsonField.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonField.

FromJsonString(String)

Creates a new instance of JsonField, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of JsonField into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to