public static function fromMap()

in das-20200116/src/Models/DescribeSlowLogHistogramAsyncResponseBody/data/data.php [1028:1556]


    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['AvgCPUTime'])) {
            if (!empty($map['AvgCPUTime'])) {
                $model->avgCPUTime = [];
                $n1 = 0;
                foreach ($map['AvgCPUTime'] as $item1) {
                    $model->avgCPUTime[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgDocExamined'])) {
            if (!empty($map['AvgDocExamined'])) {
                $model->avgDocExamined = [];
                $n1 = 0;
                foreach ($map['AvgDocExamined'] as $item1) {
                    $model->avgDocExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgFrows'])) {
            if (!empty($map['AvgFrows'])) {
                $model->avgFrows = [];
                $n1 = 0;
                foreach ($map['AvgFrows'] as $item1) {
                    $model->avgFrows[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgIOWrites'])) {
            if (!empty($map['AvgIOWrites'])) {
                $model->avgIOWrites = [];
                $n1 = 0;
                foreach ($map['AvgIOWrites'] as $item1) {
                    $model->avgIOWrites[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgKeysExamined'])) {
            if (!empty($map['AvgKeysExamined'])) {
                $model->avgKeysExamined = [];
                $n1 = 0;
                foreach ($map['AvgKeysExamined'] as $item1) {
                    $model->avgKeysExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgLastRowsCountAffected'])) {
            if (!empty($map['AvgLastRowsCountAffected'])) {
                $model->avgLastRowsCountAffected = [];
                $n1 = 0;
                foreach ($map['AvgLastRowsCountAffected'] as $item1) {
                    $model->avgLastRowsCountAffected[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgLockTime'])) {
            if (!empty($map['AvgLockTime'])) {
                $model->avgLockTime = [];
                $n1 = 0;
                foreach ($map['AvgLockTime'] as $item1) {
                    $model->avgLockTime[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgLogicalIOReads'])) {
            if (!empty($map['AvgLogicalIOReads'])) {
                $model->avgLogicalIOReads = [];
                $n1 = 0;
                foreach ($map['AvgLogicalIOReads'] as $item1) {
                    $model->avgLogicalIOReads[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgPhysicalIOReads'])) {
            if (!empty($map['AvgPhysicalIOReads'])) {
                $model->avgPhysicalIOReads = [];
                $n1 = 0;
                foreach ($map['AvgPhysicalIOReads'] as $item1) {
                    $model->avgPhysicalIOReads[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgReturnNum'])) {
            if (!empty($map['AvgReturnNum'])) {
                $model->avgReturnNum = [];
                $n1 = 0;
                foreach ($map['AvgReturnNum'] as $item1) {
                    $model->avgReturnNum[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgRows'])) {
            if (!empty($map['AvgRows'])) {
                $model->avgRows = [];
                $n1 = 0;
                foreach ($map['AvgRows'] as $item1) {
                    $model->avgRows[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgRowsCountAffected'])) {
            if (!empty($map['AvgRowsCountAffected'])) {
                $model->avgRowsCountAffected = [];
                $n1 = 0;
                foreach ($map['AvgRowsCountAffected'] as $item1) {
                    $model->avgRowsCountAffected[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgRowsExamined'])) {
            if (!empty($map['AvgRowsExamined'])) {
                $model->avgRowsExamined = [];
                $n1 = 0;
                foreach ($map['AvgRowsExamined'] as $item1) {
                    $model->avgRowsExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgRowsSent'])) {
            if (!empty($map['AvgRowsSent'])) {
                $model->avgRowsSent = [];
                $n1 = 0;
                foreach ($map['AvgRowsSent'] as $item1) {
                    $model->avgRowsSent[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgRt'])) {
            if (!empty($map['AvgRt'])) {
                $model->avgRt = [];
                $n1 = 0;
                foreach ($map['AvgRt'] as $item1) {
                    $model->avgRt[$n1++] = $item1;
                }
            }
        }

        if (isset($map['AvgScnt'])) {
            if (!empty($map['AvgScnt'])) {
                $model->avgScnt = [];
                $n1 = 0;
                foreach ($map['AvgScnt'] as $item1) {
                    $model->avgScnt[$n1++] = $item1;
                }
            }
        }

        if (isset($map['CPUTime'])) {
            if (!empty($map['CPUTime'])) {
                $model->CPUTime = [];
                $n1 = 0;
                foreach ($map['CPUTime'] as $item1) {
                    $model->CPUTime[$n1++] = $item1;
                }
            }
        }

        if (isset($map['Count'])) {
            if (!empty($map['Count'])) {
                $model->count = [];
                $n1 = 0;
                foreach ($map['Count'] as $item1) {
                    $model->count[$n1++] = $item1;
                }
            }
        }

        if (isset($map['DocExamined'])) {
            if (!empty($map['DocExamined'])) {
                $model->docExamined = [];
                $n1 = 0;
                foreach ($map['DocExamined'] as $item1) {
                    $model->docExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['Frows'])) {
            if (!empty($map['Frows'])) {
                $model->frows = [];
                $n1 = 0;
                foreach ($map['Frows'] as $item1) {
                    $model->frows[$n1++] = $item1;
                }
            }
        }

        if (isset($map['IOWrites'])) {
            if (!empty($map['IOWrites'])) {
                $model->IOWrites = [];
                $n1 = 0;
                foreach ($map['IOWrites'] as $item1) {
                    $model->IOWrites[$n1++] = $item1;
                }
            }
        }

        if (isset($map['Item'])) {
            if (!empty($map['Item'])) {
                $model->item = [];
                $n1 = 0;
                foreach ($map['Item'] as $item1) {
                    $model->item[$n1++] = item::fromMap($item1);
                }
            }
        }

        if (isset($map['KeysExamined'])) {
            if (!empty($map['KeysExamined'])) {
                $model->keysExamined = [];
                $n1 = 0;
                foreach ($map['KeysExamined'] as $item1) {
                    $model->keysExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['LastRowsCountAffected'])) {
            if (!empty($map['LastRowsCountAffected'])) {
                $model->lastRowsCountAffected = [];
                $n1 = 0;
                foreach ($map['LastRowsCountAffected'] as $item1) {
                    $model->lastRowsCountAffected[$n1++] = $item1;
                }
            }
        }

        if (isset($map['LockTime'])) {
            if (!empty($map['LockTime'])) {
                $model->lockTime = [];
                $n1 = 0;
                foreach ($map['LockTime'] as $item1) {
                    $model->lockTime[$n1++] = $item1;
                }
            }
        }

        if (isset($map['LogicalIOReads'])) {
            if (!empty($map['LogicalIOReads'])) {
                $model->logicalIOReads = [];
                $n1 = 0;
                foreach ($map['LogicalIOReads'] as $item1) {
                    $model->logicalIOReads[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxCPUTime'])) {
            if (!empty($map['MaxCPUTime'])) {
                $model->maxCPUTime = [];
                $n1 = 0;
                foreach ($map['MaxCPUTime'] as $item1) {
                    $model->maxCPUTime[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxDocExamined'])) {
            if (!empty($map['MaxDocExamined'])) {
                $model->maxDocExamined = [];
                $n1 = 0;
                foreach ($map['MaxDocExamined'] as $item1) {
                    $model->maxDocExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxFrows'])) {
            if (!empty($map['MaxFrows'])) {
                $model->maxFrows = [];
                $n1 = 0;
                foreach ($map['MaxFrows'] as $item1) {
                    $model->maxFrows[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxIOWrites'])) {
            if (!empty($map['MaxIOWrites'])) {
                $model->maxIOWrites = [];
                $n1 = 0;
                foreach ($map['MaxIOWrites'] as $item1) {
                    $model->maxIOWrites[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxKeysExamined'])) {
            if (!empty($map['MaxKeysExamined'])) {
                $model->maxKeysExamined = [];
                $n1 = 0;
                foreach ($map['MaxKeysExamined'] as $item1) {
                    $model->maxKeysExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxLastRowsCountAffected'])) {
            if (!empty($map['MaxLastRowsCountAffected'])) {
                $model->maxLastRowsCountAffected = [];
                $n1 = 0;
                foreach ($map['MaxLastRowsCountAffected'] as $item1) {
                    $model->maxLastRowsCountAffected[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxLockTime'])) {
            if (!empty($map['MaxLockTime'])) {
                $model->maxLockTime = [];
                $n1 = 0;
                foreach ($map['MaxLockTime'] as $item1) {
                    $model->maxLockTime[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxLogicalIOReads'])) {
            if (!empty($map['MaxLogicalIOReads'])) {
                $model->maxLogicalIOReads = [];
                $n1 = 0;
                foreach ($map['MaxLogicalIOReads'] as $item1) {
                    $model->maxLogicalIOReads[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxPhysicalIOReads'])) {
            if (!empty($map['MaxPhysicalIOReads'])) {
                $model->maxPhysicalIOReads = [];
                $n1 = 0;
                foreach ($map['MaxPhysicalIOReads'] as $item1) {
                    $model->maxPhysicalIOReads[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxReturnNum'])) {
            if (!empty($map['MaxReturnNum'])) {
                $model->maxReturnNum = [];
                $n1 = 0;
                foreach ($map['MaxReturnNum'] as $item1) {
                    $model->maxReturnNum[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxRows'])) {
            if (!empty($map['MaxRows'])) {
                $model->maxRows = [];
                $n1 = 0;
                foreach ($map['MaxRows'] as $item1) {
                    $model->maxRows[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxRowsCountAffected'])) {
            if (!empty($map['MaxRowsCountAffected'])) {
                $model->maxRowsCountAffected = [];
                $n1 = 0;
                foreach ($map['MaxRowsCountAffected'] as $item1) {
                    $model->maxRowsCountAffected[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxRowsExamined'])) {
            if (!empty($map['MaxRowsExamined'])) {
                $model->maxRowsExamined = [];
                $n1 = 0;
                foreach ($map['MaxRowsExamined'] as $item1) {
                    $model->maxRowsExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxRowsSent'])) {
            if (!empty($map['MaxRowsSent'])) {
                $model->maxRowsSent = [];
                $n1 = 0;
                foreach ($map['MaxRowsSent'] as $item1) {
                    $model->maxRowsSent[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxRt'])) {
            if (!empty($map['MaxRt'])) {
                $model->maxRt = [];
                $n1 = 0;
                foreach ($map['MaxRt'] as $item1) {
                    $model->maxRt[$n1++] = $item1;
                }
            }
        }

        if (isset($map['MaxScnt'])) {
            if (!empty($map['MaxScnt'])) {
                $model->maxScnt = [];
                $n1 = 0;
                foreach ($map['MaxScnt'] as $item1) {
                    $model->maxScnt[$n1++] = $item1;
                }
            }
        }

        if (isset($map['PhysicalIOReads'])) {
            if (!empty($map['PhysicalIOReads'])) {
                $model->physicalIOReads = [];
                $n1 = 0;
                foreach ($map['PhysicalIOReads'] as $item1) {
                    $model->physicalIOReads[$n1++] = $item1;
                }
            }
        }

        if (isset($map['ReturnNum'])) {
            if (!empty($map['ReturnNum'])) {
                $model->returnNum = [];
                $n1 = 0;
                foreach ($map['ReturnNum'] as $item1) {
                    $model->returnNum[$n1++] = $item1;
                }
            }
        }

        if (isset($map['Rows'])) {
            if (!empty($map['Rows'])) {
                $model->rows = [];
                $n1 = 0;
                foreach ($map['Rows'] as $item1) {
                    $model->rows[$n1++] = $item1;
                }
            }
        }

        if (isset($map['RowsCountAffected'])) {
            if (!empty($map['RowsCountAffected'])) {
                $model->rowsCountAffected = [];
                $n1 = 0;
                foreach ($map['RowsCountAffected'] as $item1) {
                    $model->rowsCountAffected[$n1++] = $item1;
                }
            }
        }

        if (isset($map['RowsExamined'])) {
            if (!empty($map['RowsExamined'])) {
                $model->rowsExamined = [];
                $n1 = 0;
                foreach ($map['RowsExamined'] as $item1) {
                    $model->rowsExamined[$n1++] = $item1;
                }
            }
        }

        if (isset($map['RowsSent'])) {
            if (!empty($map['RowsSent'])) {
                $model->rowsSent = [];
                $n1 = 0;
                foreach ($map['RowsSent'] as $item1) {
                    $model->rowsSent[$n1++] = $item1;
                }
            }
        }

        if (isset($map['Rt'])) {
            if (!empty($map['Rt'])) {
                $model->rt = [];
                $n1 = 0;
                foreach ($map['Rt'] as $item1) {
                    $model->rt[$n1++] = $item1;
                }
            }
        }

        if (isset($map['Scnt'])) {
            if (!empty($map['Scnt'])) {
                $model->scnt = [];
                $n1 = 0;
                foreach ($map['Scnt'] as $item1) {
                    $model->scnt[$n1++] = $item1;
                }
            }
        }

        if (isset($map['Total'])) {
            $model->total = $map['Total'];
        }

        if (isset($map['Ts'])) {
            if (!empty($map['Ts'])) {
                $model->ts = [];
                $n1 = 0;
                foreach ($map['Ts'] as $item1) {
                    $model->ts[$n1++] = $item1;
                }
            }
        }

        if (isset($map['TsEnd'])) {
            if (!empty($map['TsEnd'])) {
                $model->tsEnd = [];
                $n1 = 0;
                foreach ($map['TsEnd'] as $item1) {
                    $model->tsEnd[$n1++] = $item1;
                }
            }
        }

        return $model;
    }