// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'address.dart';

// **************************************************************************
// BuiltValueGenerator
// **************************************************************************

class _$Address extends Address {
  @override
  final String city;
  @override
  final String country;
  @override
  final String houseNumber;
  @override
  final String postalCode;
  @override
  final String street;

  factory _$Address([void Function(AddressBuilder)? updates]) =>
      (AddressBuilder()..update(updates))._build();

  _$Address._(
      {required this.city,
      required this.country,
      required this.houseNumber,
      required this.postalCode,
      required this.street})
      : super._();
  @override
  Address rebuild(void Function(AddressBuilder) updates) =>
      (toBuilder()..update(updates)).build();

  @override
  AddressBuilder toBuilder() => AddressBuilder()..replace(this);

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is Address &&
        city == other.city &&
        country == other.country &&
        houseNumber == other.houseNumber &&
        postalCode == other.postalCode &&
        street == other.street;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, city.hashCode);
    _$hash = $jc(_$hash, country.hashCode);
    _$hash = $jc(_$hash, houseNumber.hashCode);
    _$hash = $jc(_$hash, postalCode.hashCode);
    _$hash = $jc(_$hash, street.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'Address')
          ..add('city', city)
          ..add('country', country)
          ..add('houseNumber', houseNumber)
          ..add('postalCode', postalCode)
          ..add('street', street))
        .toString();
  }
}

class AddressBuilder implements Builder<Address, AddressBuilder> {
  _$Address? _$v;

  String? _city;
  String? get city => _$this._city;
  set city(String? city) => _$this._city = city;

  String? _country;
  String? get country => _$this._country;
  set country(String? country) => _$this._country = country;

  String? _houseNumber;
  String? get houseNumber => _$this._houseNumber;
  set houseNumber(String? houseNumber) => _$this._houseNumber = houseNumber;

  String? _postalCode;
  String? get postalCode => _$this._postalCode;
  set postalCode(String? postalCode) => _$this._postalCode = postalCode;

  String? _street;
  String? get street => _$this._street;
  set street(String? street) => _$this._street = street;

  AddressBuilder() {
    Address._defaults(this);
  }

  AddressBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _city = $v.city;
      _country = $v.country;
      _houseNumber = $v.houseNumber;
      _postalCode = $v.postalCode;
      _street = $v.street;
      _$v = null;
    }
    return this;
  }

  @override
  void replace(Address other) {
    _$v = other as _$Address;
  }

  @override
  void update(void Function(AddressBuilder)? updates) {
    if (updates != null) updates(this);
  }

  @override
  Address build() => _build();

  _$Address _build() {
    final _$result = _$v ??
        _$Address._(
          city: BuiltValueNullFieldError.checkNotNull(city, r'Address', 'city'),
          country: BuiltValueNullFieldError.checkNotNull(
              country, r'Address', 'country'),
          houseNumber: BuiltValueNullFieldError.checkNotNull(
              houseNumber, r'Address', 'houseNumber'),
          postalCode: BuiltValueNullFieldError.checkNotNull(
              postalCode, r'Address', 'postalCode'),
          street: BuiltValueNullFieldError.checkNotNull(
              street, r'Address', 'street'),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
