/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="DataBoxDiskCopyLogDetails" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param> internal DataBoxDiskCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.CopyLogDetails(json); { _diskSerialNumber = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("diskSerialNumber"), out var __jsonDiskSerialNumber) ? (string)__jsonDiskSerialNumber : (string)DiskSerialNumber; } { _errorLogLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("errorLogLink"), out var __jsonErrorLogLink) ? (string)__jsonErrorLogLink : (string)ErrorLogLink; } { _verboseLogLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("verboseLogLink"), out var __jsonVerboseLogLink) ? (string)__jsonVerboseLogLink : (string)VerboseLogLink; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="DataBoxAccountCopyLogDetails" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param> internal DataBoxAccountCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.CopyLogDetails(json); { _accountName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("accountName"), out var __jsonAccountName) ? (string)__jsonAccountName : (string)AccountName; } { _copyLogLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("copyLogLink"), out var __jsonCopyLogLink) ? (string)__jsonCopyLogLink : (string)CopyLogLink; } { _copyVerboseLogLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("copyVerboseLogLink"), out var __jsonCopyVerboseLogLink) ? (string)__jsonCopyVerboseLogLink : (string)CopyVerboseLogLink; } AfterFromJson(json); }
/// <summary> /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of <see cref="DataBoxHeavyAccountCopyLogDetails" />. /// </summary> /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from.</param> internal DataBoxHeavyAccountCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); if (returnNow) { return; } __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.CopyLogDetails(json); { _accountName = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString>("accountName"), out var __jsonAccountName) ? (string)__jsonAccountName : (string)AccountName; } { _copyLogLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray>("copyLogLink"), out var __jsonCopyLogLink) ? If(__jsonCopyLogLink as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u) => (string)(__u is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null))))() : null : CopyLogLink; } { _copyVerboseLogLink = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray>("copyVerboseLogLink"), out var __jsonCopyVerboseLogLink) ? If(__jsonCopyVerboseLogLink as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func <string[]>(() => global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p) => (string)(__p is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null))))() : null : CopyVerboseLogLink; } AfterFromJson(json); }