toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"similarity": similarity,
"distance": distance,
"path": path,
"url": url,
"contentType": contentType,
"id": id,
"metadata": metadata,
"createdAt": createdAt.toString(),
}.clearNulls();