listIndexes method
Implementation
Future<List<TableIndex>> listIndexes(String table, {List<String>? namespace}) async {
final response = await _invoke("list_indexes", {"table": table, "namespace": namespace});
if (response is! JsonContent) {
throw RoomServerException("unexpected return type from database.list_indexes call");
}
final indexes = response.json["indexes"];
if (indexes is! List) {
throw RoomServerException("unexpected return type from database.list_indexes call");
}
return indexes.map((value) => TableIndex.fromJson(Map<String, dynamic>.from(value as Map))).toList(growable: false);
}