ExplainQueryStage.fromJson constructor

ExplainQueryStage.fromJson(
  1. Map json_
)

Implementation

ExplainQueryStage.fromJson(core.Map json_)
    : this(
        completedParallelInputs: json_.containsKey('completedParallelInputs')
            ? json_['completedParallelInputs'] as core.String
            : null,
        computeMode: json_.containsKey('computeMode')
            ? json_['computeMode'] as core.String
            : null,
        computeMsAvg: json_.containsKey('computeMsAvg')
            ? json_['computeMsAvg'] as core.String
            : null,
        computeMsMax: json_.containsKey('computeMsMax')
            ? json_['computeMsMax'] as core.String
            : null,
        computeRatioAvg: json_.containsKey('computeRatioAvg')
            ? (json_['computeRatioAvg'] as core.num).toDouble()
            : null,
        computeRatioMax: json_.containsKey('computeRatioMax')
            ? (json_['computeRatioMax'] as core.num).toDouble()
            : null,
        endMs:
            json_.containsKey('endMs') ? json_['endMs'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        inputStages: json_.containsKey('inputStages')
            ? (json_['inputStages'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parallelInputs: json_.containsKey('parallelInputs')
            ? json_['parallelInputs'] as core.String
            : null,
        readMsAvg: json_.containsKey('readMsAvg')
            ? json_['readMsAvg'] as core.String
            : null,
        readMsMax: json_.containsKey('readMsMax')
            ? json_['readMsMax'] as core.String
            : null,
        readRatioAvg: json_.containsKey('readRatioAvg')
            ? (json_['readRatioAvg'] as core.num).toDouble()
            : null,
        readRatioMax: json_.containsKey('readRatioMax')
            ? (json_['readRatioMax'] as core.num).toDouble()
            : null,
        recordsRead: json_.containsKey('recordsRead')
            ? json_['recordsRead'] as core.String
            : null,
        recordsWritten: json_.containsKey('recordsWritten')
            ? json_['recordsWritten'] as core.String
            : null,
        shuffleOutputBytes: json_.containsKey('shuffleOutputBytes')
            ? json_['shuffleOutputBytes'] as core.String
            : null,
        shuffleOutputBytesSpilled:
            json_.containsKey('shuffleOutputBytesSpilled')
                ? json_['shuffleOutputBytesSpilled'] as core.String
                : null,
        slotMs: json_.containsKey('slotMs')
            ? json_['slotMs'] as core.String
            : null,
        startMs: json_.containsKey('startMs')
            ? json_['startMs'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        steps: json_.containsKey('steps')
            ? (json_['steps'] as core.List)
                .map((value) => ExplainQueryStep.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        waitMsAvg: json_.containsKey('waitMsAvg')
            ? json_['waitMsAvg'] as core.String
            : null,
        waitMsMax: json_.containsKey('waitMsMax')
            ? json_['waitMsMax'] as core.String
            : null,
        waitRatioAvg: json_.containsKey('waitRatioAvg')
            ? (json_['waitRatioAvg'] as core.num).toDouble()
            : null,
        waitRatioMax: json_.containsKey('waitRatioMax')
            ? (json_['waitRatioMax'] as core.num).toDouble()
            : null,
        writeMsAvg: json_.containsKey('writeMsAvg')
            ? json_['writeMsAvg'] as core.String
            : null,
        writeMsMax: json_.containsKey('writeMsMax')
            ? json_['writeMsMax'] as core.String
            : null,
        writeRatioAvg: json_.containsKey('writeRatioAvg')
            ? (json_['writeRatioAvg'] as core.num).toDouble()
            : null,
        writeRatioMax: json_.containsKey('writeRatioMax')
            ? (json_['writeRatioMax'] as core.num).toDouble()
            : null,
      );