// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:mapflow/features/mapflow/data/graphql/__generated__/serializers.gql.dart'
    as _i1;

part 'complete_telegram_bot_login.data.gql.g.dart';

abstract class GCompleteTelegramBotLoginData
    implements
        Built<GCompleteTelegramBotLoginData,
            GCompleteTelegramBotLoginDataBuilder> {
  GCompleteTelegramBotLoginData._();

  factory GCompleteTelegramBotLoginData(
          [void Function(GCompleteTelegramBotLoginDataBuilder b) updates]) =
      _$GCompleteTelegramBotLoginData;

  static void _initializeBuilder(GCompleteTelegramBotLoginDataBuilder b) =>
      b..G__typename = 'Mutation';

  @BuiltValueField(wireName: '__typename')
  String get G__typename;
  GCompleteTelegramBotLoginData_completeTelegramBotLogin
      get completeTelegramBotLogin;
  static Serializer<GCompleteTelegramBotLoginData> get serializer =>
      _$gCompleteTelegramBotLoginDataSerializer;

  Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
        GCompleteTelegramBotLoginData.serializer,
        this,
      ) as Map<String, dynamic>);

  static GCompleteTelegramBotLoginData? fromJson(Map<String, dynamic> json) =>
      _i1.serializers.deserializeWith(
        GCompleteTelegramBotLoginData.serializer,
        json,
      );
}

abstract class GCompleteTelegramBotLoginData_completeTelegramBotLogin
    implements
        Built<GCompleteTelegramBotLoginData_completeTelegramBotLogin,
            GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder> {
  GCompleteTelegramBotLoginData_completeTelegramBotLogin._();

  factory GCompleteTelegramBotLoginData_completeTelegramBotLogin(
      [void Function(
              GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder b)
          updates]) = _$GCompleteTelegramBotLoginData_completeTelegramBotLogin;

  static void _initializeBuilder(
          GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder b) =>
      b..G__typename = 'TelegramBotLoginSession';

  @BuiltValueField(wireName: '__typename')
  String get G__typename;
  String get sessionToken;
  GCompleteTelegramBotLoginData_completeTelegramBotLogin_user get user;
  static Serializer<GCompleteTelegramBotLoginData_completeTelegramBotLogin>
      get serializer =>
          _$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginSerializer;

  Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
        GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer,
        this,
      ) as Map<String, dynamic>);

  static GCompleteTelegramBotLoginData_completeTelegramBotLogin? fromJson(
          Map<String, dynamic> json) =>
      _i1.serializers.deserializeWith(
        GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer,
        json,
      );
}

abstract class GCompleteTelegramBotLoginData_completeTelegramBotLogin_user
    implements
        Built<GCompleteTelegramBotLoginData_completeTelegramBotLogin_user,
            GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder> {
  GCompleteTelegramBotLoginData_completeTelegramBotLogin_user._();

  factory GCompleteTelegramBotLoginData_completeTelegramBotLogin_user(
      [void Function(
              GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder
                  b)
          updates]) = _$GCompleteTelegramBotLoginData_completeTelegramBotLogin_user;

  static void _initializeBuilder(
          GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder
              b) =>
      b..G__typename = 'User';

  @BuiltValueField(wireName: '__typename')
  String get G__typename;
  String get id;
  String get telegramId;
  String? get username;
  String? get firstName;
  String? get lastName;
  String? get photoUrl;
  String? get languageCode;
  bool get isAdmin;
  static Serializer<GCompleteTelegramBotLoginData_completeTelegramBotLogin_user>
      get serializer =>
          _$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginUserSerializer;

  Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
        GCompleteTelegramBotLoginData_completeTelegramBotLogin_user.serializer,
        this,
      ) as Map<String, dynamic>);

  static GCompleteTelegramBotLoginData_completeTelegramBotLogin_user? fromJson(
          Map<String, dynamic> json) =>
      _i1.serializers.deserializeWith(
        GCompleteTelegramBotLoginData_completeTelegramBotLogin_user.serializer,
        json,
      );
}
