/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="SubscriptionIsAllowedToCreateJobValidationResponseProperties" /// />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param> internal SubscriptionIsAllowedToCreateJobValidationResponseProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ValidationInputResponse(json); { _status = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="AddressValidationProperties" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param> internal AddressValidationProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ValidationInputResponse(json); { _validationStatus = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("validationStatus"), out var __jsonValidationStatus) ? (string)__jsonValidationStatus : (string)ValidationStatus; } { _alternateAddress = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray>("alternateAddresses"), out var __jsonAlternateAddresses) ? If(__jsonAlternateAddresses as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IShippingAddress[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IShippingAddress)(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ShippingAddress.FromJson(__u)))))() : null : AlternateAddress; } AfterFromJson(json); }