toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'type'] = this.type;
  if (this.target != null) {
    json[r'target'] = this.target;
  } else {
    json[r'target'] = null;
  }
  json[r'progress'] = this.progress;
  json[r'total'] = this.total;
  return json;
}