StructuredQuery constructor

StructuredQuery({
  1. StructuredQuery_Projection? select,
  2. Iterable<StructuredQuery_CollectionSelector>? from,
  3. StructuredQuery_Filter? where,
  4. Iterable<StructuredQuery_Order>? orderBy,
  5. Int32Value? limit,
  6. int? offset,
  7. Cursor? startAt,
  8. Cursor? endAt,
})

Implementation

factory StructuredQuery({
  StructuredQuery_Projection? select,
  $core.Iterable<StructuredQuery_CollectionSelector>? from,
  StructuredQuery_Filter? where,
  $core.Iterable<StructuredQuery_Order>? orderBy,
  $17.Int32Value? limit,
  $core.int? offset,
  Cursor? startAt,
  Cursor? endAt,
}) {
  final _result = create();
  if (select != null) {
    _result.select = select;
  }
  if (from != null) {
    _result.from.addAll(from);
  }
  if (where != null) {
    _result.where = where;
  }
  if (orderBy != null) {
    _result.orderBy.addAll(orderBy);
  }
  if (limit != null) {
    _result.limit = limit;
  }
  if (offset != null) {
    _result.offset = offset;
  }
  if (startAt != null) {
    _result.startAt = startAt;
  }
  if (endAt != null) {
    _result.endAt = endAt;
  }
  return _result;
}