/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject into a new instance of <see cref="PremierAddOn" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject instance to deserialize from.</param> internal PremierAddOn(Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.Resource(json); { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20210201.PremierAddOnProperties.FromJson(__jsonProperties) : Property; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject into a new instance of <see cref="StaticSiteArmResource" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject instance to deserialize from.</param> internal StaticSiteArmResource(Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.Resource(json); { _property = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject>("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.StaticSite.FromJson(__jsonProperties) : Property; } { _sku = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject>("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.SkuDescription.FromJson(__jsonSku) : Sku; } { _identity = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Websites.Runtime.Json.JsonObject>("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.Api20201201.ManagedServiceIdentity.FromJson(__jsonIdentity) : Identity; } AfterFromJson(json); }