// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GCreateVoiceExperienceVars> _$gCreateVoiceExperienceVarsSerializer =
    _$GCreateVoiceExperienceVarsSerializer();

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

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    GCreateVoiceExperienceVars object, {
    FullType specifiedType = FullType.unspecified,
  }) {
    final result = <Object?>[
      'input',
      serializers.serialize(
        object.input,
        specifiedType: const FullType(_i1.GCreateVoiceExperienceInput),
      ),
    ];

    return result;
  }

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

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

    return result.build();
  }
}

class _$GCreateVoiceExperienceVars extends GCreateVoiceExperienceVars {
  @override
  final _i1.GCreateVoiceExperienceInput input;

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

  _$GCreateVoiceExperienceVars._({required this.input}) : super._();
  @override
  GCreateVoiceExperienceVars rebuild(
    void Function(GCreateVoiceExperienceVarsBuilder) updates,
  ) => (toBuilder()..update(updates)).build();

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

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

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(
      r'GCreateVoiceExperienceVars',
    )..add('input', input)).toString();
  }
}

class GCreateVoiceExperienceVarsBuilder
    implements
        Builder<GCreateVoiceExperienceVars, GCreateVoiceExperienceVarsBuilder> {
  _$GCreateVoiceExperienceVars? _$v;

  _i1.GCreateVoiceExperienceInputBuilder? _input;
  _i1.GCreateVoiceExperienceInputBuilder get input =>
      _$this._input ??= _i1.GCreateVoiceExperienceInputBuilder();
  set input(_i1.GCreateVoiceExperienceInputBuilder? input) =>
      _$this._input = input;

  GCreateVoiceExperienceVarsBuilder();

  GCreateVoiceExperienceVarsBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _input = $v.input.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
