fromJsonRepresentation static method
Creates an AsyncQuery
from the Query.jsonRepresentation of a query.
Implementation
static Future<AsyncQuery> fromJsonRepresentation(
AsyncDatabase database,
String json,
) async {
final q = ProxyQuery(
database: database as ProxyDatabase,
language: CBLQueryLanguage.json,
definition: json,
);
await q.prepare();
return q;
}