// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'number_factsheet.dart';

// **************************************************************************
// _IsarCollectionGenerator
// **************************************************************************

// coverage:ignore-file
// ignore_for_file: duplicate_ignore, invalid_use_of_protected_member, lines_longer_than_80_chars, constant_identifier_names, avoid_js_rounded_ints, no_leading_underscores_for_local_identifiers, require_trailing_commas, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_in_if_null_operators, library_private_types_in_public_api, prefer_const_constructors
// ignore_for_file: type=lint

extension GetNumberFactsheetCollection on Isar {
  IsarCollection<int, NumberFactsheet> get numberFactsheets =>
      this.collection();
}

const NumberFactsheetSchema = IsarGeneratedSchema(
  schema: IsarSchema(
    name: 'NumberFactsheet',
    idName: 'id',
    embedded: false,
    properties: [
      IsarPropertySchema(
        name: 'singleMeasure',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'measure',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'formula',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'readyPDF',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'number',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'priority',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'qmPassed',
        type: IsarType.string,
      ),
    ],
    indexes: [
      IsarIndexSchema(
        name: 'singleMeasure',
        properties: [
          "singleMeasure",
        ],
        unique: true,
        hash: true,
      ),
      IsarIndexSchema(
        name: 'measure',
        properties: [
          "measure",
        ],
        unique: false,
        hash: false,
      ),
    ],
  ),
  converter: IsarObjectConverter<int, NumberFactsheet>(
    serialize: serializeNumberFactsheet,
    deserialize: deserializeNumberFactsheet,
    deserializeProperty: deserializeNumberFactsheetProp,
  ),
  embeddedSchemas: [],
);

@isarProtected
int serializeNumberFactsheet(IsarWriter writer, NumberFactsheet object) {
  {
    final value = object.singleMeasure;
    if (value == null) {
      IsarCore.writeNull(writer, 1);
    } else {
      IsarCore.writeString(writer, 1, value);
    }
  }
  {
    final value = object.measure;
    if (value == null) {
      IsarCore.writeNull(writer, 2);
    } else {
      IsarCore.writeString(writer, 2, value);
    }
  }
  {
    final value = object.formula;
    if (value == null) {
      IsarCore.writeNull(writer, 3);
    } else {
      IsarCore.writeString(writer, 3, value);
    }
  }
  {
    final value = object.readyPDF;
    if (value == null) {
      IsarCore.writeNull(writer, 4);
    } else {
      IsarCore.writeString(writer, 4, value);
    }
  }
  {
    final value = object.number;
    if (value == null) {
      IsarCore.writeNull(writer, 5);
    } else {
      IsarCore.writeString(writer, 5, value);
    }
  }
  {
    final value = object.priority;
    if (value == null) {
      IsarCore.writeNull(writer, 6);
    } else {
      IsarCore.writeString(writer, 6, value);
    }
  }
  {
    final value = object.qmPassed;
    if (value == null) {
      IsarCore.writeNull(writer, 7);
    } else {
      IsarCore.writeString(writer, 7, value);
    }
  }
  return object.id;
}

@isarProtected
NumberFactsheet deserializeNumberFactsheet(IsarReader reader) {
  final object = NumberFactsheet();
  object.singleMeasure = IsarCore.readString(reader, 1);
  object.measure = IsarCore.readString(reader, 2);
  object.formula = IsarCore.readString(reader, 3);
  object.readyPDF = IsarCore.readString(reader, 4);
  object.number = IsarCore.readString(reader, 5);
  object.priority = IsarCore.readString(reader, 6);
  object.qmPassed = IsarCore.readString(reader, 7);
  object.id = IsarCore.readId(reader);
  return object;
}

@isarProtected
dynamic deserializeNumberFactsheetProp(IsarReader reader, int property) {
  switch (property) {
    case 1:
      return IsarCore.readString(reader, 1);
    case 2:
      return IsarCore.readString(reader, 2);
    case 3:
      return IsarCore.readString(reader, 3);
    case 4:
      return IsarCore.readString(reader, 4);
    case 5:
      return IsarCore.readString(reader, 5);
    case 6:
      return IsarCore.readString(reader, 6);
    case 7:
      return IsarCore.readString(reader, 7);
    case 0:
      return IsarCore.readId(reader);
    default:
      throw ArgumentError('Unknown property: $property');
  }
}

sealed class _NumberFactsheetUpdate {
  bool call({
    required int id,
    String? singleMeasure,
    String? measure,
    String? formula,
    String? readyPDF,
    String? number,
    String? priority,
    String? qmPassed,
  });
}

class _NumberFactsheetUpdateImpl implements _NumberFactsheetUpdate {
  const _NumberFactsheetUpdateImpl(this.collection);

  final IsarCollection<int, NumberFactsheet> collection;

  @override
  bool call({
    required int id,
    Object? singleMeasure = ignore,
    Object? measure = ignore,
    Object? formula = ignore,
    Object? readyPDF = ignore,
    Object? number = ignore,
    Object? priority = ignore,
    Object? qmPassed = ignore,
  }) {
    return collection.updateProperties([
          id
        ], {
          if (singleMeasure != ignore) 1: singleMeasure as String?,
          if (measure != ignore) 2: measure as String?,
          if (formula != ignore) 3: formula as String?,
          if (readyPDF != ignore) 4: readyPDF as String?,
          if (number != ignore) 5: number as String?,
          if (priority != ignore) 6: priority as String?,
          if (qmPassed != ignore) 7: qmPassed as String?,
        }) >
        0;
  }
}

sealed class _NumberFactsheetUpdateAll {
  int call({
    required List<int> id,
    String? singleMeasure,
    String? measure,
    String? formula,
    String? readyPDF,
    String? number,
    String? priority,
    String? qmPassed,
  });
}

class _NumberFactsheetUpdateAllImpl implements _NumberFactsheetUpdateAll {
  const _NumberFactsheetUpdateAllImpl(this.collection);

  final IsarCollection<int, NumberFactsheet> collection;

  @override
  int call({
    required List<int> id,
    Object? singleMeasure = ignore,
    Object? measure = ignore,
    Object? formula = ignore,
    Object? readyPDF = ignore,
    Object? number = ignore,
    Object? priority = ignore,
    Object? qmPassed = ignore,
  }) {
    return collection.updateProperties(id, {
      if (singleMeasure != ignore) 1: singleMeasure as String?,
      if (measure != ignore) 2: measure as String?,
      if (formula != ignore) 3: formula as String?,
      if (readyPDF != ignore) 4: readyPDF as String?,
      if (number != ignore) 5: number as String?,
      if (priority != ignore) 6: priority as String?,
      if (qmPassed != ignore) 7: qmPassed as String?,
    });
  }
}

extension NumberFactsheetUpdate on IsarCollection<int, NumberFactsheet> {
  _NumberFactsheetUpdate get update => _NumberFactsheetUpdateImpl(this);

  _NumberFactsheetUpdateAll get updateAll =>
      _NumberFactsheetUpdateAllImpl(this);
}

sealed class _NumberFactsheetQueryUpdate {
  int call({
    String? singleMeasure,
    String? measure,
    String? formula,
    String? readyPDF,
    String? number,
    String? priority,
    String? qmPassed,
  });
}

class _NumberFactsheetQueryUpdateImpl implements _NumberFactsheetQueryUpdate {
  const _NumberFactsheetQueryUpdateImpl(this.query, {this.limit});

  final IsarQuery<NumberFactsheet> query;
  final int? limit;

  @override
  int call({
    Object? singleMeasure = ignore,
    Object? measure = ignore,
    Object? formula = ignore,
    Object? readyPDF = ignore,
    Object? number = ignore,
    Object? priority = ignore,
    Object? qmPassed = ignore,
  }) {
    return query.updateProperties(limit: limit, {
      if (singleMeasure != ignore) 1: singleMeasure as String?,
      if (measure != ignore) 2: measure as String?,
      if (formula != ignore) 3: formula as String?,
      if (readyPDF != ignore) 4: readyPDF as String?,
      if (number != ignore) 5: number as String?,
      if (priority != ignore) 6: priority as String?,
      if (qmPassed != ignore) 7: qmPassed as String?,
    });
  }
}

extension NumberFactsheetQueryUpdate on IsarQuery<NumberFactsheet> {
  _NumberFactsheetQueryUpdate get updateFirst =>
      _NumberFactsheetQueryUpdateImpl(this, limit: 1);

  _NumberFactsheetQueryUpdate get updateAll =>
      _NumberFactsheetQueryUpdateImpl(this);
}

class _NumberFactsheetQueryBuilderUpdateImpl
    implements _NumberFactsheetQueryUpdate {
  const _NumberFactsheetQueryBuilderUpdateImpl(this.query, {this.limit});

  final QueryBuilder<NumberFactsheet, NumberFactsheet, QOperations> query;
  final int? limit;

  @override
  int call({
    Object? singleMeasure = ignore,
    Object? measure = ignore,
    Object? formula = ignore,
    Object? readyPDF = ignore,
    Object? number = ignore,
    Object? priority = ignore,
    Object? qmPassed = ignore,
  }) {
    final q = query.build();
    try {
      return q.updateProperties(limit: limit, {
        if (singleMeasure != ignore) 1: singleMeasure as String?,
        if (measure != ignore) 2: measure as String?,
        if (formula != ignore) 3: formula as String?,
        if (readyPDF != ignore) 4: readyPDF as String?,
        if (number != ignore) 5: number as String?,
        if (priority != ignore) 6: priority as String?,
        if (qmPassed != ignore) 7: qmPassed as String?,
      });
    } finally {
      q.close();
    }
  }
}

extension NumberFactsheetQueryBuilderUpdate
    on QueryBuilder<NumberFactsheet, NumberFactsheet, QOperations> {
  _NumberFactsheetQueryUpdate get updateFirst =>
      _NumberFactsheetQueryBuilderUpdateImpl(this, limit: 1);

  _NumberFactsheetQueryUpdate get updateAll =>
      _NumberFactsheetQueryBuilderUpdateImpl(this);
}

extension NumberFactsheetQueryFilter
    on QueryBuilder<NumberFactsheet, NumberFactsheet, QFilterCondition> {
  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const IsNullCondition(property: 1));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureIsNotNull() {
    return QueryBuilder.apply(not(), (query) {
      return query.addFilterCondition(const IsNullCondition(property: 1));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EqualCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureGreaterThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureGreaterThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterOrEqualCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureLessThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureLessThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessOrEqualCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureBetween(
    String? lower,
    String? upper, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        BetweenCondition(
          property: 1,
          lower: lower,
          upper: upper,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EndsWithCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        ContainsCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        MatchesCondition(
          property: 1,
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const EqualCondition(
          property: 1,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      singleMeasureIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterCondition(
          property: 1,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const IsNullCondition(property: 2));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureIsNotNull() {
    return QueryBuilder.apply(not(), (query) {
      return query.addFilterCondition(const IsNullCondition(property: 2));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EqualCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureGreaterThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureGreaterThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterOrEqualCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureLessThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureLessThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessOrEqualCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureBetween(
    String? lower,
    String? upper, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        BetweenCondition(
          property: 2,
          lower: lower,
          upper: upper,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EndsWithCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        ContainsCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        MatchesCondition(
          property: 2,
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const EqualCondition(
          property: 2,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      measureIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterCondition(
          property: 2,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const IsNullCondition(property: 3));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaIsNotNull() {
    return QueryBuilder.apply(not(), (query) {
      return query.addFilterCondition(const IsNullCondition(property: 3));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EqualCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaGreaterThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaGreaterThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterOrEqualCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaLessThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaLessThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessOrEqualCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaBetween(
    String? lower,
    String? upper, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        BetweenCondition(
          property: 3,
          lower: lower,
          upper: upper,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EndsWithCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        ContainsCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        MatchesCondition(
          property: 3,
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const EqualCondition(
          property: 3,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      formulaIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterCondition(
          property: 3,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const IsNullCondition(property: 4));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFIsNotNull() {
    return QueryBuilder.apply(not(), (query) {
      return query.addFilterCondition(const IsNullCondition(property: 4));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EqualCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFGreaterThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFGreaterThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterOrEqualCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFLessThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFLessThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessOrEqualCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFBetween(
    String? lower,
    String? upper, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        BetweenCondition(
          property: 4,
          lower: lower,
          upper: upper,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EndsWithCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        ContainsCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        MatchesCondition(
          property: 4,
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const EqualCondition(
          property: 4,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      readyPDFIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterCondition(
          property: 4,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const IsNullCondition(property: 5));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberIsNotNull() {
    return QueryBuilder.apply(not(), (query) {
      return query.addFilterCondition(const IsNullCondition(property: 5));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EqualCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberGreaterThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberGreaterThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterOrEqualCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberLessThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberLessThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessOrEqualCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberBetween(
    String? lower,
    String? upper, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        BetweenCondition(
          property: 5,
          lower: lower,
          upper: upper,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EndsWithCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        ContainsCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        MatchesCondition(
          property: 5,
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const EqualCondition(
          property: 5,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      numberIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterCondition(
          property: 5,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const IsNullCondition(property: 6));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityIsNotNull() {
    return QueryBuilder.apply(not(), (query) {
      return query.addFilterCondition(const IsNullCondition(property: 6));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EqualCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityGreaterThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityGreaterThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterOrEqualCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityLessThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityLessThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessOrEqualCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityBetween(
    String? lower,
    String? upper, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        BetweenCondition(
          property: 6,
          lower: lower,
          upper: upper,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EndsWithCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        ContainsCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        MatchesCondition(
          property: 6,
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const EqualCondition(
          property: 6,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      priorityIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterCondition(
          property: 6,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const IsNullCondition(property: 7));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedIsNotNull() {
    return QueryBuilder.apply(not(), (query) {
      return query.addFilterCondition(const IsNullCondition(property: 7));
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EqualCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedGreaterThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedGreaterThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterOrEqualCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedLessThan(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedLessThanOrEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessOrEqualCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedBetween(
    String? lower,
    String? upper, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        BetweenCondition(
          property: 7,
          lower: lower,
          upper: upper,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EndsWithCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        ContainsCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        MatchesCondition(
          property: 7,
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const EqualCondition(
          property: 7,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      qmPassedIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterCondition(
          property: 7,
          value: '',
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      idEqualTo(
    int value,
  ) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        EqualCondition(
          property: 0,
          value: value,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      idGreaterThan(
    int value,
  ) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterCondition(
          property: 0,
          value: value,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      idGreaterThanOrEqualTo(
    int value,
  ) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        GreaterOrEqualCondition(
          property: 0,
          value: value,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      idLessThan(
    int value,
  ) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessCondition(
          property: 0,
          value: value,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      idLessThanOrEqualTo(
    int value,
  ) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        LessOrEqualCondition(
          property: 0,
          value: value,
        ),
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterFilterCondition>
      idBetween(
    int lower,
    int upper,
  ) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        BetweenCondition(
          property: 0,
          lower: lower,
          upper: upper,
        ),
      );
    });
  }
}

extension NumberFactsheetQueryObject
    on QueryBuilder<NumberFactsheet, NumberFactsheet, QFilterCondition> {}

extension NumberFactsheetQuerySortBy
    on QueryBuilder<NumberFactsheet, NumberFactsheet, QSortBy> {
  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      sortBySingleMeasure({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        1,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      sortBySingleMeasureDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        1,
        sort: Sort.desc,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortByMeasure(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        2,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      sortByMeasureDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        2,
        sort: Sort.desc,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortByFormula(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        3,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      sortByFormulaDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        3,
        sort: Sort.desc,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortByReadyPDF(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        4,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      sortByReadyPDFDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        4,
        sort: Sort.desc,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortByNumber(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        5,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortByNumberDesc(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        5,
        sort: Sort.desc,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortByPriority(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        6,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      sortByPriorityDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        6,
        sort: Sort.desc,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortByQmPassed(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        7,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      sortByQmPassedDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(
        7,
        sort: Sort.desc,
        caseSensitive: caseSensitive,
      );
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortById() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(0);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> sortByIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(0, sort: Sort.desc);
    });
  }
}

extension NumberFactsheetQuerySortThenBy
    on QueryBuilder<NumberFactsheet, NumberFactsheet, QSortThenBy> {
  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      thenBySingleMeasure({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(1, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      thenBySingleMeasureDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(1, sort: Sort.desc, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenByMeasure(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(2, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      thenByMeasureDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(2, sort: Sort.desc, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenByFormula(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(3, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      thenByFormulaDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(3, sort: Sort.desc, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenByReadyPDF(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(4, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      thenByReadyPDFDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(4, sort: Sort.desc, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenByNumber(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(5, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenByNumberDesc(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(5, sort: Sort.desc, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenByPriority(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(6, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      thenByPriorityDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(6, sort: Sort.desc, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenByQmPassed(
      {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(7, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy>
      thenByQmPassedDesc({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(7, sort: Sort.desc, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenById() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(0);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterSortBy> thenByIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(0, sort: Sort.desc);
    });
  }
}

extension NumberFactsheetQueryWhereDistinct
    on QueryBuilder<NumberFactsheet, NumberFactsheet, QDistinct> {
  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterDistinct>
      distinctBySingleMeasure({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(1, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterDistinct>
      distinctByMeasure({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(2, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterDistinct>
      distinctByFormula({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(3, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterDistinct>
      distinctByReadyPDF({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(4, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterDistinct>
      distinctByNumber({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(5, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterDistinct>
      distinctByPriority({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(6, caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<NumberFactsheet, NumberFactsheet, QAfterDistinct>
      distinctByQmPassed({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(7, caseSensitive: caseSensitive);
    });
  }
}

extension NumberFactsheetQueryProperty1
    on QueryBuilder<NumberFactsheet, NumberFactsheet, QProperty> {
  QueryBuilder<NumberFactsheet, String?, QAfterProperty>
      singleMeasureProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(1);
    });
  }

  QueryBuilder<NumberFactsheet, String?, QAfterProperty> measureProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(2);
    });
  }

  QueryBuilder<NumberFactsheet, String?, QAfterProperty> formulaProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(3);
    });
  }

  QueryBuilder<NumberFactsheet, String?, QAfterProperty> readyPDFProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(4);
    });
  }

  QueryBuilder<NumberFactsheet, String?, QAfterProperty> numberProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(5);
    });
  }

  QueryBuilder<NumberFactsheet, String?, QAfterProperty> priorityProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(6);
    });
  }

  QueryBuilder<NumberFactsheet, String?, QAfterProperty> qmPassedProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(7);
    });
  }

  QueryBuilder<NumberFactsheet, int, QAfterProperty> idProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(0);
    });
  }
}

extension NumberFactsheetQueryProperty2<R>
    on QueryBuilder<NumberFactsheet, R, QAfterProperty> {
  QueryBuilder<NumberFactsheet, (R, String?), QAfterProperty>
      singleMeasureProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(1);
    });
  }

  QueryBuilder<NumberFactsheet, (R, String?), QAfterProperty>
      measureProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(2);
    });
  }

  QueryBuilder<NumberFactsheet, (R, String?), QAfterProperty>
      formulaProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(3);
    });
  }

  QueryBuilder<NumberFactsheet, (R, String?), QAfterProperty>
      readyPDFProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(4);
    });
  }

  QueryBuilder<NumberFactsheet, (R, String?), QAfterProperty> numberProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(5);
    });
  }

  QueryBuilder<NumberFactsheet, (R, String?), QAfterProperty>
      priorityProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(6);
    });
  }

  QueryBuilder<NumberFactsheet, (R, String?), QAfterProperty>
      qmPassedProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(7);
    });
  }

  QueryBuilder<NumberFactsheet, (R, int), QAfterProperty> idProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(0);
    });
  }
}

extension NumberFactsheetQueryProperty3<R1, R2>
    on QueryBuilder<NumberFactsheet, (R1, R2), QAfterProperty> {
  QueryBuilder<NumberFactsheet, (R1, R2, String?), QOperations>
      singleMeasureProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(1);
    });
  }

  QueryBuilder<NumberFactsheet, (R1, R2, String?), QOperations>
      measureProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(2);
    });
  }

  QueryBuilder<NumberFactsheet, (R1, R2, String?), QOperations>
      formulaProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(3);
    });
  }

  QueryBuilder<NumberFactsheet, (R1, R2, String?), QOperations>
      readyPDFProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(4);
    });
  }

  QueryBuilder<NumberFactsheet, (R1, R2, String?), QOperations>
      numberProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(5);
    });
  }

  QueryBuilder<NumberFactsheet, (R1, R2, String?), QOperations>
      priorityProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(6);
    });
  }

  QueryBuilder<NumberFactsheet, (R1, R2, String?), QOperations>
      qmPassedProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(7);
    });
  }

  QueryBuilder<NumberFactsheet, (R1, R2, int), QOperations> idProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(0);
    });
  }
}

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

NumberFactsheet _$NumberFactsheetFromJson(Map<String, dynamic> json) =>
    NumberFactsheet()
      ..id = (json['id'] as num).toInt()
      ..singleMeasure = json['Einzelmaßnahme(3. Ebene)'] as String?
      ..measure = json['00 Maßnahmen_Main'] as String?
      ..formula = json['Formel'] as String?
      ..readyPDF = json['versandfertig als PDF abgelegt'] as String?
      ..number = json['Nr.'] as String?
      ..priority = json['Priorität'] as String?
      ..qmPassed = json[
              'Maßnahmendatenblatt Qualitätskontrolle vollständig und ok (KM) (2402610)']
          as String?;

Map<String, dynamic> _$NumberFactsheetToJson(NumberFactsheet instance) =>
    <String, dynamic>{
      'id': instance.id,
      'Einzelmaßnahme(3. Ebene)': instance.singleMeasure,
      '00 Maßnahmen_Main': instance.measure,
      'Formel': instance.formula,
      'versandfertig als PDF abgelegt': instance.readyPDF,
      'Nr.': instance.number,
      'Priorität': instance.priority,
      'Maßnahmendatenblatt Qualitätskontrolle vollständig und ok (KM) (2402610)':
          instance.qmPassed,
    };
