toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'filename': filename,
'mime_type': mimeType,
'size_bytes': sizeBytes,
'created_at': createdAt.toIso8601String(),
'downloadable': downloadable,
'type': type,
};
}