toJson method
Converts the EmbeddedFile to a JSON map
Implementation
Map<String, dynamic> toJson() {
return {
'filePath': filePath,
if (description != null) 'description': description,
if (contentType != null) 'contentType': contentType,
};
}