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

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __solutionSummary = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.SolutionSummary(json);
            { _databasesAssessedCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber>("databasesAssessedCount"), out var __jsonDatabasesAssessedCount) ? (int?)__jsonDatabasesAssessedCount : DatabasesAssessedCount; }
            { _databaseInstancesAssessedCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber>("databaseInstancesAssessedCount"), out var __jsonDatabaseInstancesAssessedCount) ? (int?)__jsonDatabaseInstancesAssessedCount : DatabaseInstancesAssessedCount; }
            { _migrationReadyCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber>("migrationReadyCount"), out var __jsonMigrationReadyCount) ? (int?)__jsonMigrationReadyCount : MigrationReadyCount; }
            AfterFromJson(json);
        }
예제 #2
0
        /// <summary>
        /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of <see cref="ServersSolutionSummary" />.
        /// </summary>
        /// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from.</param>
        internal ServersSolutionSummary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)
        {
            bool returnNow = false;

            BeforeFromJson(json, ref returnNow);
            if (returnNow)
            {
                return;
            }
            __solutionSummary = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.SolutionSummary(json);
            { _discoveredCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber>("discoveredCount"), out var __jsonDiscoveredCount) ? (int?)__jsonDiscoveredCount : DiscoveredCount; }
            { _assessedCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber>("assessedCount"), out var __jsonAssessedCount) ? (int?)__jsonAssessedCount : AssessedCount; }
            { _replicatingCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber>("replicatingCount"), out var __jsonReplicatingCount) ? (int?)__jsonReplicatingCount : ReplicatingCount; }
            { _testMigratedCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber>("testMigratedCount"), out var __jsonTestMigratedCount) ? (int?)__jsonTestMigratedCount : TestMigratedCount; }
            { _migratedCount = If(json?.PropertyT <Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber>("migratedCount"), out var __jsonMigratedCount) ? (int?)__jsonMigratedCount : MigratedCount; }
            AfterFromJson(json);
        }