// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'complete_telegram_bot_login.var.gql.dart';

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

Serializer<GCompleteTelegramBotLoginVars>
_$gCompleteTelegramBotLoginVarsSerializer =
    _$GCompleteTelegramBotLoginVarsSerializer();

class _$GCompleteTelegramBotLoginVarsSerializer
    implements StructuredSerializer<GCompleteTelegramBotLoginVars> {
  @override
  final Iterable<Type> types = const [
    GCompleteTelegramBotLoginVars,
    _$GCompleteTelegramBotLoginVars,
  ];
  @override
  final String wireName = 'GCompleteTelegramBotLoginVars';

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    GCompleteTelegramBotLoginVars object, {
    FullType specifiedType = FullType.unspecified,
  }) {
    final result = <Object?>[
      'token',
      serializers.serialize(
        object.token,
        specifiedType: const FullType(String),
      ),
    ];

    return result;
  }

  @override
  GCompleteTelegramBotLoginVars deserialize(
    Serializers serializers,
    Iterable<Object?> serialized, {
    FullType specifiedType = FullType.unspecified,
  }) {
    final result = GCompleteTelegramBotLoginVarsBuilder();

    final iterator = serialized.iterator;
    while (iterator.moveNext()) {
      final key = iterator.current! as String;
      iterator.moveNext();
      final Object? value = iterator.current;
      switch (key) {
        case 'token':
          result.token =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(String),
                  )!
                  as String;
          break;
      }
    }

    return result.build();
  }
}

class _$GCompleteTelegramBotLoginVars extends GCompleteTelegramBotLoginVars {
  @override
  final String token;

  factory _$GCompleteTelegramBotLoginVars([
    void Function(GCompleteTelegramBotLoginVarsBuilder)? updates,
  ]) => (GCompleteTelegramBotLoginVarsBuilder()..update(updates))._build();

  _$GCompleteTelegramBotLoginVars._({required this.token}) : super._();
  @override
  GCompleteTelegramBotLoginVars rebuild(
    void Function(GCompleteTelegramBotLoginVarsBuilder) updates,
  ) => (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GCompleteTelegramBotLoginVars && token == other.token;
  }

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(
      r'GCompleteTelegramBotLoginVars',
    )..add('token', token)).toString();
  }
}

class GCompleteTelegramBotLoginVarsBuilder
    implements
        Builder<
          GCompleteTelegramBotLoginVars,
          GCompleteTelegramBotLoginVarsBuilder
        > {
  _$GCompleteTelegramBotLoginVars? _$v;

  String? _token;
  String? get token => _$this._token;
  set token(String? token) => _$this._token = token;

  GCompleteTelegramBotLoginVarsBuilder();

  GCompleteTelegramBotLoginVarsBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _token = $v.token;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$GCompleteTelegramBotLoginVars _build() {
    final _$result =
        _$v ??
        _$GCompleteTelegramBotLoginVars._(
          token: BuiltValueNullFieldError.checkNotNull(
            token,
            r'GCompleteTelegramBotLoginVars',
            'token',
          ),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
