toJson method

Map<String, dynamic> toJson()

Serialises to a JSON-compatible Map.

Implementation

Map<String, dynamic> toJson() => {
      'filename': filename,
      'chunkIndex': chunkIndex,
      'totalChunks': totalChunks,
      'diskIndex': diskIndex,
      'originalSize': originalSize,
      'totalFileSize': totalFileSize,
      'checksum': checksum,
      'parityChecksum': parityChecksum,
      'isParityChunk': isParityChunk,
      'compressed': compressed,
      'encrypted': encrypted,
      'raidType': raidType,
      'createdAt': createdAt.toIso8601String(),
    };