// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'service_provider_contact_person.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 GetServiceProviderContactPersonCollection on Isar {
  IsarCollection<int, ServiceProviderContactPerson>
      get serviceProviderContactPersons => this.collection();
}

const ServiceProviderContactPersonSchema = IsarGeneratedSchema(
  schema: IsarSchema(
    name: 'ServiceProviderContactPerson',
    idName: 'id',
    embedded: false,
    properties: [
      IsarPropertySchema(
        name: 'email',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'phoneNumber',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'description',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'serviceProvider',
        type: IsarType.objectList,
        target: 'IdValue',
      ),
      IsarPropertySchema(
        name: 'measures',
        type: IsarType.objectList,
        target: 'IdValue',
      ),
      IsarPropertySchema(
        name: 'name',
        type: IsarType.string,
      ),
    ],
    indexes: [
      IsarIndexSchema(
        name: 'name',
        properties: [
          "name",
        ],
        unique: true,
        hash: true,
      ),
    ],
  ),
  converter: IsarObjectConverter<int, ServiceProviderContactPerson>(
    serialize: serializeServiceProviderContactPerson,
    deserialize: deserializeServiceProviderContactPerson,
    deserializeProperty: deserializeServiceProviderContactPersonProp,
  ),
  embeddedSchemas: [IdValueSchema],
);

@isarProtected
int serializeServiceProviderContactPerson(
    IsarWriter writer, ServiceProviderContactPerson object) {
  {
    final value = object.email;
    if (value == null) {
      IsarCore.writeNull(writer, 1);
    } else {
      IsarCore.writeString(writer, 1, value);
    }
  }
  {
    final value = object.phoneNumber;
    if (value == null) {
      IsarCore.writeNull(writer, 2);
    } else {
      IsarCore.writeString(writer, 2, value);
    }
  }
  {
    final value = object.description;
    if (value == null) {
      IsarCore.writeNull(writer, 3);
    } else {
      IsarCore.writeString(writer, 3, value);
    }
  }
  {
    final list = object.serviceProvider;
    if (list == null) {
      IsarCore.writeNull(writer, 4);
    } else {
      final listWriter = IsarCore.beginList(writer, 4, list.length);
      for (var i = 0; i < list.length; i++) {
        {
          final value = list[i];
          final objectWriter = IsarCore.beginObject(listWriter, i);
          serializeIdValue(objectWriter, value);
          IsarCore.endObject(listWriter, objectWriter);
        }
      }
      IsarCore.endList(writer, listWriter);
    }
  }
  {
    final list = object.measures;
    if (list == null) {
      IsarCore.writeNull(writer, 5);
    } else {
      final listWriter = IsarCore.beginList(writer, 5, list.length);
      for (var i = 0; i < list.length; i++) {
        {
          final value = list[i];
          final objectWriter = IsarCore.beginObject(listWriter, i);
          serializeIdValue(objectWriter, value);
          IsarCore.endObject(listWriter, objectWriter);
        }
      }
      IsarCore.endList(writer, listWriter);
    }
  }
  {
    final value = object.name;
    if (value == null) {
      IsarCore.writeNull(writer, 6);
    } else {
      IsarCore.writeString(writer, 6, value);
    }
  }
  return object.id;
}

@isarProtected
ServiceProviderContactPerson deserializeServiceProviderContactPerson(
    IsarReader reader) {
  final object = ServiceProviderContactPerson();
  object.email = IsarCore.readString(reader, 1);
  object.phoneNumber = IsarCore.readString(reader, 2);
  object.description = IsarCore.readString(reader, 3);
  {
    final length = IsarCore.readList(reader, 4, IsarCore.readerPtrPtr);
    {
      final reader = IsarCore.readerPtr;
      if (reader.isNull) {
        object.serviceProvider = null;
      } else {
        final list = List<IdValue>.filled(length, IdValue(), growable: true);
        for (var i = 0; i < length; i++) {
          {
            final objectReader = IsarCore.readObject(reader, i);
            if (objectReader.isNull) {
              list[i] = IdValue();
            } else {
              final embedded = deserializeIdValue(objectReader);
              IsarCore.freeReader(objectReader);
              list[i] = embedded;
            }
          }
        }
        IsarCore.freeReader(reader);
        object.serviceProvider = list;
      }
    }
  }
  {
    final length = IsarCore.readList(reader, 5, IsarCore.readerPtrPtr);
    {
      final reader = IsarCore.readerPtr;
      if (reader.isNull) {
        object.measures = null;
      } else {
        final list = List<IdValue>.filled(length, IdValue(), growable: true);
        for (var i = 0; i < length; i++) {
          {
            final objectReader = IsarCore.readObject(reader, i);
            if (objectReader.isNull) {
              list[i] = IdValue();
            } else {
              final embedded = deserializeIdValue(objectReader);
              IsarCore.freeReader(objectReader);
              list[i] = embedded;
            }
          }
        }
        IsarCore.freeReader(reader);
        object.measures = list;
      }
    }
  }
  object.id = IsarCore.readId(reader);
  object.name = IsarCore.readString(reader, 6);
  return object;
}

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

sealed class _ServiceProviderContactPersonUpdate {
  bool call({
    required int id,
    String? email,
    String? phoneNumber,
    String? description,
    String? name,
  });
}

class _ServiceProviderContactPersonUpdateImpl
    implements _ServiceProviderContactPersonUpdate {
  const _ServiceProviderContactPersonUpdateImpl(this.collection);

  final IsarCollection<int, ServiceProviderContactPerson> collection;

  @override
  bool call({
    required int id,
    Object? email = ignore,
    Object? phoneNumber = ignore,
    Object? description = ignore,
    Object? name = ignore,
  }) {
    return collection.updateProperties([
          id
        ], {
          if (email != ignore) 1: email as String?,
          if (phoneNumber != ignore) 2: phoneNumber as String?,
          if (description != ignore) 3: description as String?,
          if (name != ignore) 6: name as String?,
        }) >
        0;
  }
}

sealed class _ServiceProviderContactPersonUpdateAll {
  int call({
    required List<int> id,
    String? email,
    String? phoneNumber,
    String? description,
    String? name,
  });
}

class _ServiceProviderContactPersonUpdateAllImpl
    implements _ServiceProviderContactPersonUpdateAll {
  const _ServiceProviderContactPersonUpdateAllImpl(this.collection);

  final IsarCollection<int, ServiceProviderContactPerson> collection;

  @override
  int call({
    required List<int> id,
    Object? email = ignore,
    Object? phoneNumber = ignore,
    Object? description = ignore,
    Object? name = ignore,
  }) {
    return collection.updateProperties(id, {
      if (email != ignore) 1: email as String?,
      if (phoneNumber != ignore) 2: phoneNumber as String?,
      if (description != ignore) 3: description as String?,
      if (name != ignore) 6: name as String?,
    });
  }
}

extension ServiceProviderContactPersonUpdate
    on IsarCollection<int, ServiceProviderContactPerson> {
  _ServiceProviderContactPersonUpdate get update =>
      _ServiceProviderContactPersonUpdateImpl(this);

  _ServiceProviderContactPersonUpdateAll get updateAll =>
      _ServiceProviderContactPersonUpdateAllImpl(this);
}

sealed class _ServiceProviderContactPersonQueryUpdate {
  int call({
    String? email,
    String? phoneNumber,
    String? description,
    String? name,
  });
}

class _ServiceProviderContactPersonQueryUpdateImpl
    implements _ServiceProviderContactPersonQueryUpdate {
  const _ServiceProviderContactPersonQueryUpdateImpl(this.query, {this.limit});

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

  @override
  int call({
    Object? email = ignore,
    Object? phoneNumber = ignore,
    Object? description = ignore,
    Object? name = ignore,
  }) {
    return query.updateProperties(limit: limit, {
      if (email != ignore) 1: email as String?,
      if (phoneNumber != ignore) 2: phoneNumber as String?,
      if (description != ignore) 3: description as String?,
      if (name != ignore) 6: name as String?,
    });
  }
}

extension ServiceProviderContactPersonQueryUpdate
    on IsarQuery<ServiceProviderContactPerson> {
  _ServiceProviderContactPersonQueryUpdate get updateFirst =>
      _ServiceProviderContactPersonQueryUpdateImpl(this, limit: 1);

  _ServiceProviderContactPersonQueryUpdate get updateAll =>
      _ServiceProviderContactPersonQueryUpdateImpl(this);
}

class _ServiceProviderContactPersonQueryBuilderUpdateImpl
    implements _ServiceProviderContactPersonQueryUpdate {
  const _ServiceProviderContactPersonQueryBuilderUpdateImpl(this.query,
      {this.limit});

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

  @override
  int call({
    Object? email = ignore,
    Object? phoneNumber = ignore,
    Object? description = ignore,
    Object? name = ignore,
  }) {
    final q = query.build();
    try {
      return q.updateProperties(limit: limit, {
        if (email != ignore) 1: email as String?,
        if (phoneNumber != ignore) 2: phoneNumber as String?,
        if (description != ignore) 3: description as String?,
        if (name != ignore) 6: name as String?,
      });
    } finally {
      q.close();
    }
  }
}

extension ServiceProviderContactPersonQueryBuilderUpdate on QueryBuilder<
    ServiceProviderContactPerson, ServiceProviderContactPerson, QOperations> {
  _ServiceProviderContactPersonQueryUpdate get updateFirst =>
      _ServiceProviderContactPersonQueryBuilderUpdateImpl(this, limit: 1);

  _ServiceProviderContactPersonQueryUpdate get updateAll =>
      _ServiceProviderContactPersonQueryBuilderUpdateImpl(this);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  QueryBuilder<ServiceProviderContactPerson, ServiceProviderContactPerson,
      QAfterFilterCondition> serviceProviderIsEmpty() {
    return not().group(
      (q) => q.serviceProviderIsNull().or().serviceProviderIsNotEmpty(),
    );
  }

  QueryBuilder<ServiceProviderContactPerson, ServiceProviderContactPerson,
      QAfterFilterCondition> serviceProviderIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterOrEqualCondition(property: 4, value: null),
      );
    });
  }

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

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

  QueryBuilder<ServiceProviderContactPerson, ServiceProviderContactPerson,
      QAfterFilterCondition> measuresIsEmpty() {
    return not().group(
      (q) => q.measuresIsNull().or().measuresIsNotEmpty(),
    );
  }

  QueryBuilder<ServiceProviderContactPerson, ServiceProviderContactPerson,
      QAfterFilterCondition> measuresIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(
        const GreaterOrEqualCondition(property: 5, value: null),
      );
    });
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

extension ServiceProviderContactPersonQueryObject on QueryBuilder<
    ServiceProviderContactPerson,
    ServiceProviderContactPerson,
    QFilterCondition> {}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

extension ServiceProviderContactPersonQueryProperty1 on QueryBuilder<
    ServiceProviderContactPerson, ServiceProviderContactPerson, QProperty> {
  QueryBuilder<ServiceProviderContactPerson, String?, QAfterProperty>
      emailProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(1);
    });
  }

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

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

  QueryBuilder<ServiceProviderContactPerson, List<IdValue>?, QAfterProperty>
      serviceProviderProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(4);
    });
  }

  QueryBuilder<ServiceProviderContactPerson, List<IdValue>?, QAfterProperty>
      measuresProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(5);
    });
  }

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

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

extension ServiceProviderContactPersonQueryProperty2<R>
    on QueryBuilder<ServiceProviderContactPerson, R, QAfterProperty> {
  QueryBuilder<ServiceProviderContactPerson, (R, String?), QAfterProperty>
      emailProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(1);
    });
  }

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

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

  QueryBuilder<ServiceProviderContactPerson, (R, List<IdValue>?),
      QAfterProperty> serviceProviderProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(4);
    });
  }

  QueryBuilder<ServiceProviderContactPerson, (R, List<IdValue>?),
      QAfterProperty> measuresProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(5);
    });
  }

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

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

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

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

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

  QueryBuilder<ServiceProviderContactPerson, (R1, R2, List<IdValue>?),
      QOperations> serviceProviderProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(4);
    });
  }

  QueryBuilder<ServiceProviderContactPerson, (R1, R2, List<IdValue>?),
      QOperations> measuresProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addProperty(5);
    });
  }

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

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

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

ServiceProviderContactPerson _$ServiceProviderContactPersonFromJson(
        Map<String, dynamic> json) =>
    ServiceProviderContactPerson()
      ..id = (json['id'] as num).toInt()
      ..name = json['Name'] as String?
      ..email = json['E-Mail'] as String?
      ..phoneNumber = json['Telefonnummer'] as String?
      ..description = json['Kurzbeschreibung'] as String?
      ..serviceProvider = (json['09 Dienstleister'] as List<dynamic>?)
          ?.map((e) => IdValue.fromJson(e as Map<String, dynamic>))
          .toList()
      ..measures = (json['00 Maßnahmen_Main'] as List<dynamic>?)
          ?.map((e) => IdValue.fromJson(e as Map<String, dynamic>))
          .toList();

Map<String, dynamic> _$ServiceProviderContactPersonToJson(
        ServiceProviderContactPerson instance) =>
    <String, dynamic>{
      'id': instance.id,
      'Name': instance.name,
      'E-Mail': instance.email,
      'Telefonnummer': instance.phoneNumber,
      'Kurzbeschreibung': instance.description,
      '09 Dienstleister':
          instance.serviceProvider?.map((e) => e.toJson()).toList(),
      '00 Maßnahmen_Main': instance.measures?.map((e) => e.toJson()).toList(),
    };
