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