toJson method

Map<String, dynamic> toJson()

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,
  };
}