// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GRecommendPlacesByVoiceVars>
_$gRecommendPlacesByVoiceVarsSerializer =
    _$GRecommendPlacesByVoiceVarsSerializer();

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

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

    return result;
  }

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

    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.GVoicePlaceRecommendationsInput,
                  ),
                )!
                as _i1.GVoicePlaceRecommendationsInput,
          );
          break;
      }
    }

    return result.build();
  }
}

class _$GRecommendPlacesByVoiceVars extends GRecommendPlacesByVoiceVars {
  @override
  final _i1.GVoicePlaceRecommendationsInput input;

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

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

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GRecommendPlacesByVoiceVars && 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'GRecommendPlacesByVoiceVars',
    )..add('input', input)).toString();
  }
}

class GRecommendPlacesByVoiceVarsBuilder
    implements
        Builder<
          GRecommendPlacesByVoiceVars,
          GRecommendPlacesByVoiceVarsBuilder
        > {
  _$GRecommendPlacesByVoiceVars? _$v;

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

  GRecommendPlacesByVoiceVarsBuilder();

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

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
