// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GNearbyPlacesVars> _$gNearbyPlacesVarsSerializer =
    _$GNearbyPlacesVarsSerializer();

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

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

    return result;
  }

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

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

    return result.build();
  }
}

class _$GNearbyPlacesVars extends GNearbyPlacesVars {
  @override
  final _i1.GNearbyPlacesInput input;

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

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

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

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

class GNearbyPlacesVarsBuilder
    implements Builder<GNearbyPlacesVars, GNearbyPlacesVarsBuilder> {
  _$GNearbyPlacesVars? _$v;

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

  GNearbyPlacesVarsBuilder();

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

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
