// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'sync_contact_channel.dart';

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

class _$SyncContactChannel extends SyncContactChannel {
  @override
  final ContactKind kind;
  @override
  final int position;
  @override
  final String value;

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

  _$SyncContactChannel._(
      {required this.kind, required this.position, required this.value})
      : super._();
  @override
  SyncContactChannel rebuild(
          void Function(SyncContactChannelBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is SyncContactChannel &&
        kind == other.kind &&
        position == other.position &&
        value == other.value;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, kind.hashCode);
    _$hash = $jc(_$hash, position.hashCode);
    _$hash = $jc(_$hash, value.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'SyncContactChannel')
          ..add('kind', kind)
          ..add('position', position)
          ..add('value', value))
        .toString();
  }
}

class SyncContactChannelBuilder
    implements Builder<SyncContactChannel, SyncContactChannelBuilder> {
  _$SyncContactChannel? _$v;

  ContactKind? _kind;
  ContactKind? get kind => _$this._kind;
  set kind(ContactKind? kind) => _$this._kind = kind;

  int? _position;
  int? get position => _$this._position;
  set position(int? position) => _$this._position = position;

  String? _value;
  String? get value => _$this._value;
  set value(String? value) => _$this._value = value;

  SyncContactChannelBuilder() {
    SyncContactChannel._defaults(this);
  }

  SyncContactChannelBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _kind = $v.kind;
      _position = $v.position;
      _value = $v.value;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$SyncContactChannel _build() {
    final _$result = _$v ??
        _$SyncContactChannel._(
          kind: BuiltValueNullFieldError.checkNotNull(
              kind, r'SyncContactChannel', 'kind'),
          position: BuiltValueNullFieldError.checkNotNull(
              position, r'SyncContactChannel', 'position'),
          value: BuiltValueNullFieldError.checkNotNull(
              value, r'SyncContactChannel', 'value'),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
