Class JsonSchema.VariantData
In a variant data type, the value of one property is used to determine how to interpret the entire entity. Its value must exist in a map of descriminant values to schema names.
Inheritance
System.Object
JsonSchema.VariantData
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Discovery.v1.Data
Assembly: Google.Apis.Discovery.v1.dll
Syntax
public class VariantData
Properties
Discriminant
The name of the type discriminant property.
Declaration
[JsonProperty("discriminant")]
public virtual string Discriminant { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Map
The map of discriminant value to schema to use for parsing..
Declaration
[JsonProperty("map")]
public virtual IList<JsonSchema.VariantData.MapData> Map { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<JsonSchema.VariantData.MapData> |