toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'file_id': fileId,
'file_unique_id': fileUniqueId,
'thumbnail': thumbnail,
'file_name': fileName,
'mime_type': mimeType,
'file_size': fileSize,
}..removeWhere((_, v) => v == null);
}