toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "downloadedBytes": downloadedBytes,
      "totalBytes": totalBytes,
      "progress": progress,
    }.clearNulls();