toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'filePath': filePath,
    'fileType': fileType,
    'createdAt': createdAt,
    'updatedAt': updatedAt,
    'tags': jsonEncode(tags),
    'metadata': jsonEncode(metadata),
    'durationMilliseconds': durationMilliseconds,
    'remoteId': remoteId,
    'remoteURL': remoteURL,
    'transcriptionURL': transcriptionURL,
    'transcriptionLength': transcriptionLength,
    'status': status,
    'progress': progress,
  };
}