VectorsdbCollection.fromMap constructor

VectorsdbCollection.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory VectorsdbCollection.fromMap(
  Map<String, dynamic> map,
) {
  return VectorsdbCollection(
    $id: map['\$id'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    $permissions: List.from(map['\$permissions'] ?? []),
    databaseId: map['databaseId'].toString(),
    name: map['name'].toString(),
    enabled: map['enabled'],
    documentSecurity: map['documentSecurity'],
    attributes: List.from(map['attributes'] ?? []),
    indexes: List<Index>.from(
      map['indexes'].map((p) => Index.fromMap(p)),
    ),
    bytesMax: map['bytesMax'],
    bytesUsed: map['bytesUsed'],
    dimension: map['dimension'],
  );
}