toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'file_id': fileId,
'file_unique_id': fileUniqueId,
'width': width,
'height': height,
'duration': duration,
'thumbnail': thumbnail?.toJson(),
'file_name': fileName,
'mime_type': mimeType,
'file_size': fileSize,
}..removeWhere(_nullFilter);
}