// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'start_telegram_bot_login.data.gql.dart';

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

Serializer<GStartTelegramBotLoginData> _$gStartTelegramBotLoginDataSerializer =
    _$GStartTelegramBotLoginDataSerializer();
Serializer<GStartTelegramBotLoginData_startTelegramBotLogin>
_$gStartTelegramBotLoginDataStartTelegramBotLoginSerializer =
    _$GStartTelegramBotLoginData_startTelegramBotLoginSerializer();

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

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

    return result;
  }

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

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

    return result.build();
  }
}

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

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

    return result;
  }

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

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

    return result.build();
  }
}

class _$GStartTelegramBotLoginData extends GStartTelegramBotLoginData {
  @override
  final String G__typename;
  @override
  final GStartTelegramBotLoginData_startTelegramBotLogin startTelegramBotLogin;

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

  _$GStartTelegramBotLoginData._({
    required this.G__typename,
    required this.startTelegramBotLogin,
  }) : super._();
  @override
  GStartTelegramBotLoginData rebuild(
    void Function(GStartTelegramBotLoginDataBuilder) updates,
  ) => (toBuilder()..update(updates)).build();

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

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

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'GStartTelegramBotLoginData')
          ..add('G__typename', G__typename)
          ..add('startTelegramBotLogin', startTelegramBotLogin))
        .toString();
  }
}

class GStartTelegramBotLoginDataBuilder
    implements
        Builder<GStartTelegramBotLoginData, GStartTelegramBotLoginDataBuilder> {
  _$GStartTelegramBotLoginData? _$v;

  String? _G__typename;
  String? get G__typename => _$this._G__typename;
  set G__typename(String? G__typename) => _$this._G__typename = G__typename;

  GStartTelegramBotLoginData_startTelegramBotLoginBuilder?
  _startTelegramBotLogin;
  GStartTelegramBotLoginData_startTelegramBotLoginBuilder
  get startTelegramBotLogin => _$this._startTelegramBotLogin ??=
      GStartTelegramBotLoginData_startTelegramBotLoginBuilder();
  set startTelegramBotLogin(
    GStartTelegramBotLoginData_startTelegramBotLoginBuilder?
    startTelegramBotLogin,
  ) => _$this._startTelegramBotLogin = startTelegramBotLogin;

  GStartTelegramBotLoginDataBuilder() {
    GStartTelegramBotLoginData._initializeBuilder(this);
  }

  GStartTelegramBotLoginDataBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _startTelegramBotLogin = $v.startTelegramBotLogin.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

  _$GStartTelegramBotLoginData _build() {
    _$GStartTelegramBotLoginData _$result;
    try {
      _$result =
          _$v ??
          _$GStartTelegramBotLoginData._(
            G__typename: BuiltValueNullFieldError.checkNotNull(
              G__typename,
              r'GStartTelegramBotLoginData',
              'G__typename',
            ),
            startTelegramBotLogin: startTelegramBotLogin.build(),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'startTelegramBotLogin';
        startTelegramBotLogin.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
          r'GStartTelegramBotLoginData',
          _$failedField,
          e.toString(),
        );
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

class _$GStartTelegramBotLoginData_startTelegramBotLogin
    extends GStartTelegramBotLoginData_startTelegramBotLogin {
  @override
  final String G__typename;
  @override
  final String token;
  @override
  final String botUrl;
  @override
  final String expiresAt;

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

  _$GStartTelegramBotLoginData_startTelegramBotLogin._({
    required this.G__typename,
    required this.token,
    required this.botUrl,
    required this.expiresAt,
  }) : super._();
  @override
  GStartTelegramBotLoginData_startTelegramBotLogin rebuild(
    void Function(GStartTelegramBotLoginData_startTelegramBotLoginBuilder)
    updates,
  ) => (toBuilder()..update(updates)).build();

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

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

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(
            r'GStartTelegramBotLoginData_startTelegramBotLogin',
          )
          ..add('G__typename', G__typename)
          ..add('token', token)
          ..add('botUrl', botUrl)
          ..add('expiresAt', expiresAt))
        .toString();
  }
}

class GStartTelegramBotLoginData_startTelegramBotLoginBuilder
    implements
        Builder<
          GStartTelegramBotLoginData_startTelegramBotLogin,
          GStartTelegramBotLoginData_startTelegramBotLoginBuilder
        > {
  _$GStartTelegramBotLoginData_startTelegramBotLogin? _$v;

  String? _G__typename;
  String? get G__typename => _$this._G__typename;
  set G__typename(String? G__typename) => _$this._G__typename = G__typename;

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

  String? _botUrl;
  String? get botUrl => _$this._botUrl;
  set botUrl(String? botUrl) => _$this._botUrl = botUrl;

  String? _expiresAt;
  String? get expiresAt => _$this._expiresAt;
  set expiresAt(String? expiresAt) => _$this._expiresAt = expiresAt;

  GStartTelegramBotLoginData_startTelegramBotLoginBuilder() {
    GStartTelegramBotLoginData_startTelegramBotLogin._initializeBuilder(this);
  }

  GStartTelegramBotLoginData_startTelegramBotLoginBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _token = $v.token;
      _botUrl = $v.botUrl;
      _expiresAt = $v.expiresAt;
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
