ApproximateProgress.fromJson constructor

ApproximateProgress.fromJson(
  1. Map json_
)

Implementation

ApproximateProgress.fromJson(core.Map json_)
    : this(
        percentComplete: json_.containsKey('percentComplete')
            ? (json_['percentComplete'] as core.num).toDouble()
            : null,
        position: json_.containsKey('position')
            ? Position.fromJson(
                json_['position'] as core.Map<core.String, core.dynamic>)
            : null,
        remainingTime: json_.containsKey('remainingTime')
            ? json_['remainingTime'] as core.String
            : null,
      );