// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'contact_channel.dart';

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

class _$ContactChannel extends ContactChannel {
  @override
  final String id;
  @override
  final ContactKind kind;
  @override
  final int position;
  @override
  final String sourceId;
  @override
  final String value;

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

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

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

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

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

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

class ContactChannelBuilder
    implements Builder<ContactChannel, ContactChannelBuilder> {
  _$ContactChannel? _$v;

  String? _id;
  String? get id => _$this._id;
  set id(String? id) => _$this._id = id;

  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? _sourceId;
  String? get sourceId => _$this._sourceId;
  set sourceId(String? sourceId) => _$this._sourceId = sourceId;

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

  ContactChannelBuilder() {
    ContactChannel._defaults(this);
  }

  ContactChannelBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _id = $v.id;
      _kind = $v.kind;
      _position = $v.position;
      _sourceId = $v.sourceId;
      _value = $v.value;
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
