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