toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'success'] = this.success;
    json[r'fileId'] = this.fileId;
    json[r'manifestId'] = this.manifestId;
    json[r'version'] = this.version;
    json[r'totalSize'] = this.totalSize;
  if (this.physicalSize != null) {
    json[r'physicalSize'] = this.physicalSize;
  } else {
    json[r'physicalSize'] = null;
  }
  if (this.deduplicationPct != null) {
    json[r'deduplicationPct'] = this.deduplicationPct;
  } else {
    json[r'deduplicationPct'] = null;
  }
  if (this.totalBlocks != null) {
    json[r'totalBlocks'] = this.totalBlocks;
  } else {
    json[r'totalBlocks'] = null;
  }
  if (this.newBlocks != null) {
    json[r'newBlocks'] = this.newBlocks;
  } else {
    json[r'newBlocks'] = null;
  }
  if (this.deduplicatedBlocks != null) {
    json[r'deduplicatedBlocks'] = this.deduplicatedBlocks;
  } else {
    json[r'deduplicatedBlocks'] = null;
  }
  return json;
}