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

abstract class GAuthenticateTelegramData
    implements
        Built<GAuthenticateTelegramData, GAuthenticateTelegramDataBuilder> {
  GAuthenticateTelegramData._();

  factory GAuthenticateTelegramData(
          [void Function(GAuthenticateTelegramDataBuilder b) updates]) =
      _$GAuthenticateTelegramData;

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

  @BuiltValueField(wireName: '__typename')
  String get G__typename;
  GAuthenticateTelegramData_authenticateTelegram get authenticateTelegram;
  static Serializer<GAuthenticateTelegramData> get serializer =>
      _$gAuthenticateTelegramDataSerializer;

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

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

abstract class GAuthenticateTelegramData_authenticateTelegram
    implements
        Built<GAuthenticateTelegramData_authenticateTelegram,
            GAuthenticateTelegramData_authenticateTelegramBuilder> {
  GAuthenticateTelegramData_authenticateTelegram._();

  factory GAuthenticateTelegramData_authenticateTelegram(
      [void Function(GAuthenticateTelegramData_authenticateTelegramBuilder b)
          updates]) = _$GAuthenticateTelegramData_authenticateTelegram;

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

  @BuiltValueField(wireName: '__typename')
  String get G__typename;
  GAuthenticateTelegramData_authenticateTelegram_user get user;
  static Serializer<GAuthenticateTelegramData_authenticateTelegram>
      get serializer =>
          _$gAuthenticateTelegramDataAuthenticateTelegramSerializer;

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

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

abstract class GAuthenticateTelegramData_authenticateTelegram_user
    implements
        Built<GAuthenticateTelegramData_authenticateTelegram_user,
            GAuthenticateTelegramData_authenticateTelegram_userBuilder> {
  GAuthenticateTelegramData_authenticateTelegram_user._();

  factory GAuthenticateTelegramData_authenticateTelegram_user(
      [void Function(
              GAuthenticateTelegramData_authenticateTelegram_userBuilder b)
          updates]) = _$GAuthenticateTelegramData_authenticateTelegram_user;

  static void _initializeBuilder(
          GAuthenticateTelegramData_authenticateTelegram_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<GAuthenticateTelegramData_authenticateTelegram_user>
      get serializer =>
          _$gAuthenticateTelegramDataAuthenticateTelegramUserSerializer;

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

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