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,
      );