// 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 'authenticate_telegram_login.data.gql.g.dart';

abstract class GAuthenticateTelegramLoginData
    implements
        Built<GAuthenticateTelegramLoginData,
            GAuthenticateTelegramLoginDataBuilder> {
  GAuthenticateTelegramLoginData._();

  factory GAuthenticateTelegramLoginData(
          [void Function(GAuthenticateTelegramLoginDataBuilder b) updates]) =
      _$GAuthenticateTelegramLoginData;

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

  @BuiltValueField(wireName: '__typename')
  String get G__typename;
  GAuthenticateTelegramLoginData_authenticateTelegramLogin
      get authenticateTelegramLogin;
  static Serializer<GAuthenticateTelegramLoginData> get serializer =>
      _$gAuthenticateTelegramLoginDataSerializer;

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

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

abstract class GAuthenticateTelegramLoginData_authenticateTelegramLogin
    implements
        Built<GAuthenticateTelegramLoginData_authenticateTelegramLogin,
            GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder> {
  GAuthenticateTelegramLoginData_authenticateTelegramLogin._();

  factory GAuthenticateTelegramLoginData_authenticateTelegramLogin(
      [void Function(
              GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder b)
          updates]) = _$GAuthenticateTelegramLoginData_authenticateTelegramLogin;

  static void _initializeBuilder(
          GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder b) =>
      b..G__typename = 'AuthPayload';

  @BuiltValueField(wireName: '__typename')
  String get G__typename;
  GAuthenticateTelegramLoginData_authenticateTelegramLogin_user get user;
  static Serializer<GAuthenticateTelegramLoginData_authenticateTelegramLogin>
      get serializer =>
          _$gAuthenticateTelegramLoginDataAuthenticateTelegramLoginSerializer;

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

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

abstract class GAuthenticateTelegramLoginData_authenticateTelegramLogin_user
    implements
        Built<GAuthenticateTelegramLoginData_authenticateTelegramLogin_user,
            GAuthenticateTelegramLoginData_authenticateTelegramLogin_userBuilder> {
  GAuthenticateTelegramLoginData_authenticateTelegramLogin_user._();

  factory GAuthenticateTelegramLoginData_authenticateTelegramLogin_user(
          [void Function(
                  GAuthenticateTelegramLoginData_authenticateTelegramLogin_userBuilder
                      b)
              updates]) =
      _$GAuthenticateTelegramLoginData_authenticateTelegramLogin_user;

  static void _initializeBuilder(
          GAuthenticateTelegramLoginData_authenticateTelegramLogin_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<
          GAuthenticateTelegramLoginData_authenticateTelegramLogin_user>
      get serializer =>
          _$gAuthenticateTelegramLoginDataAuthenticateTelegramLoginUserSerializer;

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

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