/// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonObject into a new instance of <see cref="ConfigurationStoreUpdateParameters" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ConfigurationStoreUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            _properties = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.ConfigurationStorePropertiesUpdateParameters.FromJson(__jsonProperties) : Properties;
            _tag        = /* 1 */ new System.Collections.Hashtable(System.Linq.Enumerable.ToDictionary <string, string, string>(json.Property("tags")?.Keys ?? System.Linq.Enumerable.Empty <string>(), each => each, each => json.Property("tags").PropertyT <Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonNode>(each) is Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonString __t ? (string)__t : null));
            AfterFromJson(json);
        }
Beispiel #2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonObject into a new instance of <see cref="Resource" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal Resource(Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            _name     = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonString>("name"), out var __jsonName) ? (string)__jsonName : (string)Name;
            _type     = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type;
            _id       = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonString>("id"), out var __jsonId) ? (string)__jsonId : (string)Id;
            _location = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonString>("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;
            _tag      = /* 1 */ new System.Collections.Hashtable(System.Linq.Enumerable.ToDictionary <string, string, string>(json.Property("tags")?.Keys ?? System.Linq.Enumerable.Empty <string>(), each => each, each => json.Property("tags").PropertyT <Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonNode>(each) is Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.Json.JsonString __t ? (string)__t : null));
            AfterFromJson(json);
        }