ApproximateReportedProgress.fromJson constructor

ApproximateReportedProgress.fromJson(
  1. Map _json
)

Implementation

ApproximateReportedProgress.fromJson(core.Map _json)
    : this(
        consumedParallelism: _json.containsKey('consumedParallelism')
            ? ReportedParallelism.fromJson(_json['consumedParallelism']
                as core.Map<core.String, core.dynamic>)
            : null,
        fractionConsumed: _json.containsKey('fractionConsumed')
            ? (_json['fractionConsumed'] as core.num).toDouble()
            : null,
        position: _json.containsKey('position')
            ? Position.fromJson(
                _json['position'] as core.Map<core.String, core.dynamic>)
            : null,
        remainingParallelism: _json.containsKey('remainingParallelism')
            ? ReportedParallelism.fromJson(_json['remainingParallelism']
                as core.Map<core.String, core.dynamic>)
            : null,
      );