Progress.fromJson constructor

Progress.fromJson(
  1. Map _json
)

Implementation

Progress.fromJson(core.Map _json)
    : this(
        analyzed: _json.containsKey('analyzed')
            ? (_json['analyzed'] as core.num).toDouble()
            : null,
        encoded: _json.containsKey('encoded')
            ? (_json['encoded'] as core.num).toDouble()
            : null,
        notified: _json.containsKey('notified')
            ? (_json['notified'] as core.num).toDouble()
            : null,
        uploaded: _json.containsKey('uploaded')
            ? (_json['uploaded'] as core.num).toDouble()
            : null,
      );