// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GCreateVoiceExperienceData> _$gCreateVoiceExperienceDataSerializer =
    _$GCreateVoiceExperienceDataSerializer();
Serializer<GCreateVoiceExperienceData_createVoiceExperience>
_$gCreateVoiceExperienceDataCreateVoiceExperienceSerializer =
    _$GCreateVoiceExperienceData_createVoiceExperienceSerializer();

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

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

    return result;
  }

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

    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 'createVoiceExperience':
          result.createVoiceExperience.replace(
            serializers.deserialize(
                  value,
                  specifiedType: const FullType(
                    GCreateVoiceExperienceData_createVoiceExperience,
                  ),
                )!
                as GCreateVoiceExperienceData_createVoiceExperience,
          );
          break;
      }
    }

    return result.build();
  }
}

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

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

    return result;
  }

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

    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 'id':
          result.id =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(String),
                  )!
                  as String;
          break;
      }
    }

    return result.build();
  }
}

class _$GCreateVoiceExperienceData extends GCreateVoiceExperienceData {
  @override
  final String G__typename;
  @override
  final GCreateVoiceExperienceData_createVoiceExperience createVoiceExperience;

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

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

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

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

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

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

class GCreateVoiceExperienceDataBuilder
    implements
        Builder<GCreateVoiceExperienceData, GCreateVoiceExperienceDataBuilder> {
  _$GCreateVoiceExperienceData? _$v;

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

  GCreateVoiceExperienceData_createVoiceExperienceBuilder?
  _createVoiceExperience;
  GCreateVoiceExperienceData_createVoiceExperienceBuilder
  get createVoiceExperience => _$this._createVoiceExperience ??=
      GCreateVoiceExperienceData_createVoiceExperienceBuilder();
  set createVoiceExperience(
    GCreateVoiceExperienceData_createVoiceExperienceBuilder?
    createVoiceExperience,
  ) => _$this._createVoiceExperience = createVoiceExperience;

  GCreateVoiceExperienceDataBuilder() {
    GCreateVoiceExperienceData._initializeBuilder(this);
  }

  GCreateVoiceExperienceDataBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _createVoiceExperience = $v.createVoiceExperience.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

class _$GCreateVoiceExperienceData_createVoiceExperience
    extends GCreateVoiceExperienceData_createVoiceExperience {
  @override
  final String G__typename;
  @override
  final String id;

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

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

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

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

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

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

class GCreateVoiceExperienceData_createVoiceExperienceBuilder
    implements
        Builder<
          GCreateVoiceExperienceData_createVoiceExperience,
          GCreateVoiceExperienceData_createVoiceExperienceBuilder
        > {
  _$GCreateVoiceExperienceData_createVoiceExperience? _$v;

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

  String? _id;
  String? get id => _$this._id;
  set id(String? id) => _$this._id = id;

  GCreateVoiceExperienceData_createVoiceExperienceBuilder() {
    GCreateVoiceExperienceData_createVoiceExperience._initializeBuilder(this);
  }

  GCreateVoiceExperienceData_createVoiceExperienceBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _id = $v.id;
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
