toJson method

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

Implementation

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