toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()
override

Implementation

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