SyncQuery.fromJsonRepresentation constructor

SyncQuery.fromJsonRepresentation(
  1. SyncDatabase database,
  2. String json
)

Creates an SyncQuery from the Query.jsonRepresentation of a query.

Implementation

factory SyncQuery.fromJsonRepresentation(
  SyncDatabase database,
  String json,
) =>
    FfiQuery(
      database: database as FfiDatabase,
      definition: json,
      language: CBLQueryLanguage.json,
    )..prepare();