// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'list_measure_type_group_category.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 GetListMeasureTypeGroupCategoryCollection on Isar {
  IsarCollection<int, ListMeasureTypeGroupCategory>
      get listMeasureTypeGroupCategorys => this.collection();
}

const ListMeasureTypeGroupCategorySchema = IsarGeneratedSchema(
  schema: IsarSchema(
    name: 'ListMeasureTypeGroupCategory',
    idName: 'id',
    embedded: false,
    properties: [
      IsarPropertySchema(
        name: 'description',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'measureType',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'measureTypeUrl',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'measureGroup',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'measureGroupUrl',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'measureCategory',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'measureCategoryUrl',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'files',
        type: IsarType.objectList,
        target: 'FilePart',
      ),
    ],
    indexes: [
      IsarIndexSchema(
        name: 'measureType',
        properties: [
          "measureType",
        ],
        unique: false,
        hash: false,
      ),
      IsarIndexSchema(
        name: 'measureTypeUrl',
        properties: [
          "measureTypeUrl",
        ],
        unique: false,
        hash: false,
      ),
      IsarIndexSchema(
        name: 'measureGroup',
        properties: [
          "measureGroup",
        ],
        unique: false,
        hash: false,
      ),
      IsarIndexSchema(
        name: 'measureGroupUrl',
        properties: [
          "measureGroupUrl",
        ],
        unique: false,
        hash: false,
      ),
      IsarIndexSchema(
        name: 'measureCategory',
        properties: [
          "measureCategory",
        ],
        unique: false,
        hash: false,
      ),
      IsarIndexSchema(
        name: 'measureCategoryUrl',
        properties: [
          "measureCategoryUrl",
        ],
        unique: false,
        hash: false,
      ),
    ],
  ),
  converter: IsarObjectConverter<int, ListMeasureTypeGroupCategory>(
    serialize: serializeListMeasureTypeGroupCategory,
    deserialize: deserializeListMeasureTypeGroupCategory,
    deserializeProperty: deserializeListMeasureTypeGroupCategoryProp,
  ),
  embeddedSchemas: [FilePartSchema, ThumbnailsSchema, ThumbnailSchema],
);

@isarProtected
int serializeListMeasureTypeGroupCategory(
    IsarWriter writer, ListMeasureTypeGroupCategory object) {
  {
    final value = object.description;
    if (value == null) {
      IsarCore.writeNull(writer, 1);
    } else {
      IsarCore.writeString(writer, 1, value);
    }
  }
  {
    final value = object.measureType;
    if (value == null) {
      IsarCore.writeNull(writer, 2);
    } else {
      IsarCore.writeString(writer, 2, value);
    }
  }
  {
    final value = object.measureTypeUrl;
    if (value == null) {
      IsarCore.writeNull(writer, 3);
    } else {
      IsarCore.writeString(writer, 3, value);
    }
  }
  {
    final value = object.measureGroup;
    if (value == null) {
      IsarCore.writeNull(writer, 4);
    } else {
      IsarCore.writeString(writer, 4, value);
    }
  }
  {
    final value = object.measureGroupUrl;
    if (value == null) {
      IsarCore.writeNull(writer, 5);
    } else {
      IsarCore.writeString(writer, 5, value);
    }
  }
  {
    final value = object.measureCategory;
    if (value == null) {
      IsarCore.writeNull(writer, 6);
    } else {
      IsarCore.writeString(writer, 6, value);
    }
  }
  {
    final value = object.measureCategoryUrl;
    if (value == null) {
      IsarCore.writeNull(writer, 7);
    } else {
      IsarCore.writeString(writer, 7, value);
    }
  }
  {
    final list = object.files;
    if (list == null) {
      IsarCore.writeNull(writer, 8);
    } else {
      final listWriter = IsarCore.beginList(writer, 8, list.length);
      for (var i = 0; i < list.length; i++) {
        {
          final value = list[i];
          final objectWriter = IsarCore.beginObject(listWriter, i);
          serializeFilePart(objectWriter, value);
          IsarCore.endObject(listWriter, objectWriter);
        }
      }
      IsarCore.endList(writer, listWriter);
    }
  }
  return object.id;
}

@isarProtected
ListMeasureTypeGroupCategory deserializeListMeasureTypeGroupCategory(
    IsarReader reader) {
  final object = ListMeasureTypeGroupCategory();
  object.description = IsarCore.readString(reader, 1);
  object.measureType = IsarCore.readString(reader, 2);
  object.measureTypeUrl = IsarCore.readString(reader, 3);
  object.measureGroup = IsarCore.readString(reader, 4);
  object.measureGroupUrl = IsarCore.readString(reader, 5);
  object.measureCategory = IsarCore.readString(reader, 6);
  object.measureCategoryUrl = IsarCore.readString(reader, 7);
  {
    final length = IsarCore.readList(reader, 8, IsarCore.readerPtrPtr);
    {
      final reader = IsarCore.readerPtr;
      if (reader.isNull) {
        object.files = null;
      } else {
        final list = List<FilePart>.filled(length, FilePart(), growable: true);
        for (var i = 0; i < length; i++) {
          {
            final objectReader = IsarCore.readObject(reader, i);
            if (objectReader.isNull) {
              list[i] = FilePart();
            } else {
              final embedded = deserializeFilePart(objectReader);
              IsarCore.freeReader(objectReader);
              list[i] = embedded;
            }
          }
        }
        IsarCore.freeReader(reader);
        object.files = list;
      }
    }
  }
  object.id = IsarCore.readId(reader);
  return object;
}

@isarProtected
dynamic deserializeListMeasureTypeGroupCategoryProp(
    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 8:
      {
        final length = IsarCore.readList(reader, 8, IsarCore.readerPtrPtr);
        {
          final reader = IsarCore.readerPtr;
          if (reader.isNull) {
            return null;
          } else {
            final list =
                List<FilePart>.filled(length, FilePart(), growable: true);
            for (var i = 0; i < length; i++) {
              {
                final objectReader = IsarCore.readObject(reader, i);
                if (objectReader.isNull) {
                  list[i] = FilePart();
                } else {
                  final embedded = deserializeFilePart(objectReader);
                  IsarCore.freeReader(objectReader);
                  list[i] = embedded;
                }
              }
            }
            IsarCore.freeReader(reader);
            return list;
          }
        }
      }
    case 0:
      return IsarCore.readId(reader);
    default:
      throw ArgumentError('Unknown property: $property');
  }
}

sealed class _ListMeasureTypeGroupCategoryUpdate {
  bool call({
    required int id,
    String? description,
    String? measureType,
    String? measureTypeUrl,
    String? measureGroup,
    String? measureGroupUrl,
    String? measureCategory,
    String? measureCategoryUrl,
  });
}

class _ListMeasureTypeGroupCategoryUpdateImpl
    implements _ListMeasureTypeGroupCategoryUpdate {
  const _ListMeasureTypeGroupCategoryUpdateImpl(this.collection);

  final IsarCollection<int, ListMeasureTypeGroupCategory> collection;

  @override
  bool call({
    required int id,
    Object? description = ignore,
    Object? measureType = ignore,
    Object? measureTypeUrl = ignore,
    Object? measureGroup = ignore,
    Object? measureGroupUrl = ignore,
    Object? measureCategory = ignore,
    Object? measureCategoryUrl = ignore,
  }) {
    return collection.updateProperties([
          id
        ], {
          if (description != ignore) 1: description as String?,
          if (measureType != ignore) 2: measureType as String?,
          if (measureTypeUrl != ignore) 3: measureTypeUrl as String?,
          if (measureGroup != ignore) 4: measureGroup as String?,
          if (measureGroupUrl != ignore) 5: measureGroupUrl as String?,
          if (measureCategory != ignore) 6: measureCategory as String?,
          if (measureCategoryUrl != ignore) 7: measureCategoryUrl as String?,
        }) >
        0;
  }
}

sealed class _ListMeasureTypeGroupCategoryUpdateAll {
  int call({
    required List<int> id,
    String? description,
    String? measureType,
    String? measureTypeUrl,
    String? measureGroup,
    String? measureGroupUrl,
    String? measureCategory,
    String? measureCategoryUrl,
  });
}

class _ListMeasureTypeGroupCategoryUpdateAllImpl
    implements _ListMeasureTypeGroupCategoryUpdateAll {
  const _ListMeasureTypeGroupCategoryUpdateAllImpl(this.collection);

  final IsarCollection<int, ListMeasureTypeGroupCategory> collection;

  @override
  int call({
    required List<int> id,
    Object? description = ignore,
    Object? measureType = ignore,
    Object? measureTypeUrl = ignore,
    Object? measureGroup = ignore,
    Object? measureGroupUrl = ignore,
    Object? measureCategory = ignore,
    Object? measureCategoryUrl = ignore,
  }) {
    return collection.updateProperties(id, {
      if (description != ignore) 1: description as String?,
      if (measureType != ignore) 2: measureType as String?,
      if (measureTypeUrl != ignore) 3: measureTypeUrl as String?,
      if (measureGroup != ignore) 4: measureGroup as String?,
      if (measureGroupUrl != ignore) 5: measureGroupUrl as String?,
      if (measureCategory != ignore) 6: measureCategory as String?,
      if (measureCategoryUrl != ignore) 7: measureCategoryUrl as String?,
    });
  }
}

extension ListMeasureTypeGroupCategoryUpdate
    on IsarCollection<int, ListMeasureTypeGroupCategory> {
  _ListMeasureTypeGroupCategoryUpdate get update =>
      _ListMeasureTypeGroupCategoryUpdateImpl(this);

  _ListMeasureTypeGroupCategoryUpdateAll get updateAll =>
      _ListMeasureTypeGroupCategoryUpdateAllImpl(this);
}

sealed class _ListMeasureTypeGroupCategoryQueryUpdate {
  int call({
    String? description,
    String? measureType,
    String? measureTypeUrl,
    String? measureGroup,
    String? measureGroupUrl,
    String? measureCategory,
    String? measureCategoryUrl,
  });
}

class _ListMeasureTypeGroupCategoryQueryUpdateImpl
    implements _ListMeasureTypeGroupCategoryQueryUpdate {
  const _ListMeasureTypeGroupCategoryQueryUpdateImpl(this.query, {this.limit});

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

  @override
  int call({
    Object? description = ignore,
    Object? measureType = ignore,
    Object? measureTypeUrl = ignore,
    Object? measureGroup = ignore,
    Object? measureGroupUrl = ignore,
    Object? measureCategory = ignore,
    Object? measureCategoryUrl = ignore,
  }) {
    return query.updateProperties(limit: limit, {
      if (description != ignore) 1: description as String?,
      if (measureType != ignore) 2: measureType as String?,
      if (measureTypeUrl != ignore) 3: measureTypeUrl as String?,
      if (measureGroup != ignore) 4: measureGroup as String?,
      if (measureGroupUrl != ignore) 5: measureGroupUrl as String?,
      if (measureCategory != ignore) 6: measureCategory as String?,
      if (measureCategoryUrl != ignore) 7: measureCategoryUrl as String?,
    });
  }
}

extension ListMeasureTypeGroupCategoryQueryUpdate
    on IsarQuery<ListMeasureTypeGroupCategory> {
  _ListMeasureTypeGroupCategoryQueryUpdate get updateFirst =>
      _ListMeasureTypeGroupCategoryQueryUpdateImpl(this, limit: 1);

  _ListMeasureTypeGroupCategoryQueryUpdate get updateAll =>
      _ListMeasureTypeGroupCategoryQueryUpdateImpl(this);
}

class _ListMeasureTypeGroupCategoryQueryBuilderUpdateImpl
    implements _ListMeasureTypeGroupCategoryQueryUpdate {
  const _ListMeasureTypeGroupCategoryQueryBuilderUpdateImpl(this.query,
      {this.limit});

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

  @override
  int call({
    Object? description = ignore,
    Object? measureType = ignore,
    Object? measureTypeUrl = ignore,
    Object? measureGroup = ignore,
    Object? measureGroupUrl = ignore,
    Object? measureCategory = ignore,
    Object? measureCategoryUrl = ignore,
  }) {
    final q = query.build();
    try {
      return q.updateProperties(limit: limit, {
        if (description != ignore) 1: description as String?,
        if (measureType != ignore) 2: measureType as String?,
        if (measureTypeUrl != ignore) 3: measureTypeUrl as String?,
        if (measureGroup != ignore) 4: measureGroup as String?,
        if (measureGroupUrl != ignore) 5: measureGroupUrl as String?,
        if (measureCategory != ignore) 6: measureCategory as String?,
        if (measureCategoryUrl != ignore) 7: measureCategoryUrl as String?,
      });
    } finally {
      q.close();
    }
  }
}

extension ListMeasureTypeGroupCategoryQueryBuilderUpdate on QueryBuilder<
    ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory, QOperations> {
  _ListMeasureTypeGroupCategoryQueryUpdate get updateFirst =>
      _ListMeasureTypeGroupCategoryQueryBuilderUpdateImpl(this, limit: 1);

  _ListMeasureTypeGroupCategoryQueryUpdate get updateAll =>
      _ListMeasureTypeGroupCategoryQueryBuilderUpdateImpl(this);
}

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

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> descriptionBetween(
    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<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> descriptionStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 1,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

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

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

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

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

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

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

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureTypeBetween(
    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<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureTypeStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 2,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

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

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

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

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

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

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

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureTypeUrlBetween(
    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<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureTypeUrlStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 3,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

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

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

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

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

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

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

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureGroupBetween(
    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<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureGroupStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 4,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

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

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

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

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

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

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

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureGroupUrlBetween(
    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<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureGroupUrlStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 5,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

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

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

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

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

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

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

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureCategoryBetween(
    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<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureCategoryStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 6,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

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

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

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

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

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

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

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureCategoryUrlBetween(
    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<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> measureCategoryUrlStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        StartsWithCondition(
          property: 7,
          value: value,
          caseSensitive: caseSensitive,
        ),
      );
    });
  }

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> filesIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const IsNullCondition(property: 8));
    });
  }

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> filesIsNotNull() {
    return QueryBuilder.apply(not(), (query) {
      return query.addFilterCondition(const IsNullCondition(property: 8));
    });
  }

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> filesIsEmpty() {
    return not().group(
      (q) => q.filesIsNull().or().filesIsNotEmpty(),
    );
  }

  QueryBuilder<ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory,
      QAfterFilterCondition> filesIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterOrEqualCondition(property: 8, value: null),
      );
    });
  }

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

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

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

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

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

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

extension ListMeasureTypeGroupCategoryQueryObject on QueryBuilder<
    ListMeasureTypeGroupCategory,
    ListMeasureTypeGroupCategory,
    QFilterCondition> {}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

extension ListMeasureTypeGroupCategoryQueryProperty1 on QueryBuilder<
    ListMeasureTypeGroupCategory, ListMeasureTypeGroupCategory, QProperty> {
  QueryBuilder<ListMeasureTypeGroupCategory, String?, QAfterProperty>
      descriptionProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(1);
    });
  }

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, List<FilePart>?, QAfterProperty>
      filesProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(8);
    });
  }

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

extension ListMeasureTypeGroupCategoryQueryProperty2<R>
    on QueryBuilder<ListMeasureTypeGroupCategory, R, QAfterProperty> {
  QueryBuilder<ListMeasureTypeGroupCategory, (R, String?), QAfterProperty>
      descriptionProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(1);
    });
  }

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, (R, List<FilePart>?),
      QAfterProperty> filesProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(8);
    });
  }

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

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

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

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

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

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

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

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

  QueryBuilder<ListMeasureTypeGroupCategory, (R1, R2, List<FilePart>?),
      QOperations> filesProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(8);
    });
  }

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

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

ListMeasureTypeGroupCategory _$ListMeasureTypeGroupCategoryFromJson(
        Map<String, dynamic> json) =>
    ListMeasureTypeGroupCategory()
      ..id = (json['id'] as num).toInt()
      ..description = json['description'] as String?
      ..measureType = json['measureType'] as String?
      ..measureTypeUrl = json['measureTypeUrl'] as String?
      ..measureGroup = json['measureGroup'] as String?
      ..measureGroupUrl = json['measureGroupUrl'] as String?
      ..measureCategory = json['measureCategory'] as String?
      ..measureCategoryUrl = json['measureCategoryUrl'] as String?
      ..files = (json['files'] as List<dynamic>?)
          ?.map((e) => FilePart.fromJson(e as Map<String, dynamic>))
          .toList();

Map<String, dynamic> _$ListMeasureTypeGroupCategoryToJson(
        ListMeasureTypeGroupCategory instance) =>
    <String, dynamic>{
      'id': instance.id,
      'description': instance.description,
      'measureType': instance.measureType,
      'measureTypeUrl': instance.measureTypeUrl,
      'measureGroup': instance.measureGroup,
      'measureGroupUrl': instance.measureGroupUrl,
      'measureCategory': instance.measureCategory,
      'measureCategoryUrl': instance.measureCategoryUrl,
      'files': instance.files?.map((e) => e.toJson()).toList(),
    };
