toMap method

Map<String, dynamic> toMap()
override

Implementation

Map<String, dynamic> toMap() {
  return {
    "\$id": $id,
    "\$createdAt": $createdAt,
    "\$updatedAt": $updatedAt,
    "\$permissions": $permissions,
    "databaseId": databaseId,
    "name": name,
    "enabled": enabled,
    "documentSecurity": documentSecurity,
    "attributes": attributes,
    "indexes": indexes.map((p) => p.toMap()).toList(),
  };
}