// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GAddFavoritePlaceVars> _$gAddFavoritePlaceVarsSerializer =
    _$GAddFavoritePlaceVarsSerializer();

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

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

    return result;
  }

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

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

    return result.build();
  }
}

class _$GAddFavoritePlaceVars extends GAddFavoritePlaceVars {
  @override
  final String placeId;

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

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

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

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

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

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

class GAddFavoritePlaceVarsBuilder
    implements Builder<GAddFavoritePlaceVars, GAddFavoritePlaceVarsBuilder> {
  _$GAddFavoritePlaceVars? _$v;

  String? _placeId;
  String? get placeId => _$this._placeId;
  set placeId(String? placeId) => _$this._placeId = placeId;

  GAddFavoritePlaceVarsBuilder();

  GAddFavoritePlaceVarsBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _placeId = $v.placeId;
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
