JobStatistics.fromJson constructor

JobStatistics.fromJson(
  1. Map json_
)

Implementation

JobStatistics.fromJson(core.Map json_)
    : this(
        completionRatio: json_.containsKey('completionRatio')
            ? (json_['completionRatio'] as core.num).toDouble()
            : null,
        copy: json_.containsKey('copy')
            ? JobStatistics5.fromJson(
                json_['copy'] as core.Map<core.String, core.dynamic>)
            : null,
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        dataMaskingStatistics: json_.containsKey('dataMaskingStatistics')
            ? DataMaskingStatistics.fromJson(json_['dataMaskingStatistics']
                as core.Map<core.String, core.dynamic>)
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        extract: json_.containsKey('extract')
            ? JobStatistics4.fromJson(
                json_['extract'] as core.Map<core.String, core.dynamic>)
            : null,
        finalExecutionDurationMs:
            json_.containsKey('finalExecutionDurationMs')
                ? json_['finalExecutionDurationMs'] as core.String
                : null,
        load: json_.containsKey('load')
            ? JobStatistics3.fromJson(
                json_['load'] as core.Map<core.String, core.dynamic>)
            : null,
        numChildJobs: json_.containsKey('numChildJobs')
            ? json_['numChildJobs'] as core.String
            : null,
        parentJobId: json_.containsKey('parentJobId')
            ? json_['parentJobId'] as core.String
            : null,
        query: json_.containsKey('query')
            ? JobStatistics2.fromJson(
                json_['query'] as core.Map<core.String, core.dynamic>)
            : null,
        quotaDeferments: json_.containsKey('quotaDeferments')
            ? (json_['quotaDeferments'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        reservationUsage: json_.containsKey('reservationUsage')
            ? (json_['reservationUsage'] as core.List)
                .map((value) => JobStatisticsReservationUsage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reservationId: json_.containsKey('reservation_id')
            ? json_['reservation_id'] as core.String
            : null,
        rowLevelSecurityStatistics:
            json_.containsKey('rowLevelSecurityStatistics')
                ? RowLevelSecurityStatistics.fromJson(
                    json_['rowLevelSecurityStatistics']
                        as core.Map<core.String, core.dynamic>)
                : null,
        scriptStatistics: json_.containsKey('scriptStatistics')
            ? ScriptStatistics.fromJson(json_['scriptStatistics']
                as core.Map<core.String, core.dynamic>)
            : null,
        sessionInfo: json_.containsKey('sessionInfo')
            ? SessionInfo.fromJson(
                json_['sessionInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        totalBytesProcessed: json_.containsKey('totalBytesProcessed')
            ? json_['totalBytesProcessed'] as core.String
            : null,
        totalSlotMs: json_.containsKey('totalSlotMs')
            ? json_['totalSlotMs'] as core.String
            : null,
        transactionInfo: json_.containsKey('transactionInfo')
            ? TransactionInfo.fromJson(json_['transactionInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
      );