toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$collectionId": $collectionId,
"\$databaseId": $databaseId,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"\$permissions": $permissions,
"data": data,
};
}