JobStatistics2.fromJson constructor

JobStatistics2.fromJson(
  1. Map json_
)

Implementation

JobStatistics2.fromJson(core.Map json_)
    : this(
        biEngineStatistics: json_.containsKey('biEngineStatistics')
            ? BiEngineStatistics.fromJson(json_['biEngineStatistics']
                as core.Map<core.String, core.dynamic>)
            : null,
        billingTier: json_.containsKey('billingTier')
            ? json_['billingTier'] as core.int
            : null,
        cacheHit: json_.containsKey('cacheHit')
            ? json_['cacheHit'] as core.bool
            : null,
        dclTargetDataset: json_.containsKey('dclTargetDataset')
            ? DatasetReference.fromJson(json_['dclTargetDataset']
                as core.Map<core.String, core.dynamic>)
            : null,
        dclTargetTable: json_.containsKey('dclTargetTable')
            ? TableReference.fromJson(json_['dclTargetTable']
                as core.Map<core.String, core.dynamic>)
            : null,
        dclTargetView: json_.containsKey('dclTargetView')
            ? TableReference.fromJson(
                json_['dclTargetView'] as core.Map<core.String, core.dynamic>)
            : null,
        ddlAffectedRowAccessPolicyCount:
            json_.containsKey('ddlAffectedRowAccessPolicyCount')
                ? json_['ddlAffectedRowAccessPolicyCount'] as core.String
                : null,
        ddlDestinationTable: json_.containsKey('ddlDestinationTable')
            ? TableReference.fromJson(json_['ddlDestinationTable']
                as core.Map<core.String, core.dynamic>)
            : null,
        ddlOperationPerformed: json_.containsKey('ddlOperationPerformed')
            ? json_['ddlOperationPerformed'] as core.String
            : null,
        ddlTargetDataset: json_.containsKey('ddlTargetDataset')
            ? DatasetReference.fromJson(json_['ddlTargetDataset']
                as core.Map<core.String, core.dynamic>)
            : null,
        ddlTargetRoutine: json_.containsKey('ddlTargetRoutine')
            ? RoutineReference.fromJson(json_['ddlTargetRoutine']
                as core.Map<core.String, core.dynamic>)
            : null,
        ddlTargetRowAccessPolicy:
            json_.containsKey('ddlTargetRowAccessPolicy')
                ? RowAccessPolicyReference.fromJson(
                    json_['ddlTargetRowAccessPolicy']
                        as core.Map<core.String, core.dynamic>)
                : null,
        ddlTargetTable: json_.containsKey('ddlTargetTable')
            ? TableReference.fromJson(json_['ddlTargetTable']
                as core.Map<core.String, core.dynamic>)
            : null,
        dmlStats: json_.containsKey('dmlStats')
            ? DmlStatistics.fromJson(
                json_['dmlStats'] as core.Map<core.String, core.dynamic>)
            : null,
        estimatedBytesProcessed: json_.containsKey('estimatedBytesProcessed')
            ? json_['estimatedBytesProcessed'] as core.String
            : null,
        exportDataStatistics: json_.containsKey('exportDataStatistics')
            ? ExportDataStatistics.fromJson(json_['exportDataStatistics']
                as core.Map<core.String, core.dynamic>)
            : null,
        externalServiceCosts: json_.containsKey('externalServiceCosts')
            ? (json_['externalServiceCosts'] as core.List)
                .map((value) => ExternalServiceCost.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        loadQueryStatistics: json_.containsKey('loadQueryStatistics')
            ? LoadQueryStatistics.fromJson(json_['loadQueryStatistics']
                as core.Map<core.String, core.dynamic>)
            : null,
        materializedViewStatistics:
            json_.containsKey('materializedViewStatistics')
                ? MaterializedViewStatistics.fromJson(
                    json_['materializedViewStatistics']
                        as core.Map<core.String, core.dynamic>)
                : null,
        metadataCacheStatistics: json_.containsKey('metadataCacheStatistics')
            ? MetadataCacheStatistics.fromJson(
                json_['metadataCacheStatistics']
                    as core.Map<core.String, core.dynamic>)
            : null,
        mlStatistics: json_.containsKey('mlStatistics')
            ? MlStatistics.fromJson(
                json_['mlStatistics'] as core.Map<core.String, core.dynamic>)
            : null,
        modelTraining: json_.containsKey('modelTraining')
            ? BigQueryModelTraining.fromJson(
                json_['modelTraining'] as core.Map<core.String, core.dynamic>)
            : null,
        modelTrainingCurrentIteration:
            json_.containsKey('modelTrainingCurrentIteration')
                ? json_['modelTrainingCurrentIteration'] as core.int
                : null,
        modelTrainingExpectedTotalIteration:
            json_.containsKey('modelTrainingExpectedTotalIteration')
                ? json_['modelTrainingExpectedTotalIteration'] as core.String
                : null,
        numDmlAffectedRows: json_.containsKey('numDmlAffectedRows')
            ? json_['numDmlAffectedRows'] as core.String
            : null,
        performanceInsights: json_.containsKey('performanceInsights')
            ? PerformanceInsights.fromJson(json_['performanceInsights']
                as core.Map<core.String, core.dynamic>)
            : null,
        queryInfo: json_.containsKey('queryInfo')
            ? QueryInfo.fromJson(
                json_['queryInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        queryPlan: json_.containsKey('queryPlan')
            ? (json_['queryPlan'] as core.List)
                .map((value) => ExplainQueryStage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        referencedRoutines: json_.containsKey('referencedRoutines')
            ? (json_['referencedRoutines'] as core.List)
                .map((value) => RoutineReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        referencedTables: json_.containsKey('referencedTables')
            ? (json_['referencedTables'] as core.List)
                .map((value) => TableReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reservationUsage: json_.containsKey('reservationUsage')
            ? (json_['reservationUsage'] as core.List)
                .map((value) => JobStatistics2ReservationUsage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        schema: json_.containsKey('schema')
            ? TableSchema.fromJson(
                json_['schema'] as core.Map<core.String, core.dynamic>)
            : null,
        searchStatistics: json_.containsKey('searchStatistics')
            ? SearchStatistics.fromJson(json_['searchStatistics']
                as core.Map<core.String, core.dynamic>)
            : null,
        sparkStatistics: json_.containsKey('sparkStatistics')
            ? SparkStatistics.fromJson(json_['sparkStatistics']
                as core.Map<core.String, core.dynamic>)
            : null,
        statementType: json_.containsKey('statementType')
            ? json_['statementType'] as core.String
            : null,
        timeline: json_.containsKey('timeline')
            ? (json_['timeline'] as core.List)
                .map((value) => QueryTimelineSample.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        totalBytesBilled: json_.containsKey('totalBytesBilled')
            ? json_['totalBytesBilled'] as core.String
            : null,
        totalBytesProcessed: json_.containsKey('totalBytesProcessed')
            ? json_['totalBytesProcessed'] as core.String
            : null,
        totalBytesProcessedAccuracy:
            json_.containsKey('totalBytesProcessedAccuracy')
                ? json_['totalBytesProcessedAccuracy'] as core.String
                : null,
        totalPartitionsProcessed:
            json_.containsKey('totalPartitionsProcessed')
                ? json_['totalPartitionsProcessed'] as core.String
                : null,
        totalSlotMs: json_.containsKey('totalSlotMs')
            ? json_['totalSlotMs'] as core.String
            : null,
        transferredBytes: json_.containsKey('transferredBytes')
            ? json_['transferredBytes'] as core.String
            : null,
        undeclaredQueryParameters:
            json_.containsKey('undeclaredQueryParameters')
                ? (json_['undeclaredQueryParameters'] as core.List)
                    .map((value) => QueryParameter.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        vectorSearchStatistics: json_.containsKey('vectorSearchStatistics')
            ? VectorSearchStatistics.fromJson(json_['vectorSearchStatistics']
                as core.Map<core.String, core.dynamic>)
            : null,
      );