list method
Implementation
Future<List<String>> list({List<String>? namespace}) async {
final response = await _invoke("list", {"namespace": namespace});
if (response is! JsonContent) {
throw _unexpectedResponseError("list");
}
final memories = response.json["memories"];
if (memories is! List) {
return [];
}
return memories.whereType<String>().toList();
}