// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GPlacesData> _$gPlacesDataSerializer = _$GPlacesDataSerializer();
Serializer<GPlacesData_places> _$gPlacesDataPlacesSerializer =
    _$GPlacesData_placesSerializer();

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

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

    return result;
  }

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

    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 'places':
          result.places.replace(
            serializers.deserialize(
                  value,
                  specifiedType: const FullType(BuiltList, const [
                    const FullType(GPlacesData_places),
                  ]),
                )!
                as BuiltList<Object?>,
          );
          break;
      }
    }

    return result.build();
  }
}

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

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    GPlacesData_places 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)),
      'googlePlaceId',
      serializers.serialize(
        object.googlePlaceId,
        specifiedType: const FullType(String),
      ),
      'name',
      serializers.serialize(object.name, specifiedType: const FullType(String)),
      'latitude',
      serializers.serialize(
        object.latitude,
        specifiedType: const FullType(double),
      ),
      'longitude',
      serializers.serialize(
        object.longitude,
        specifiedType: const FullType(double),
      ),
      'googleTypes',
      serializers.serialize(
        object.googleTypes,
        specifiedType: const FullType(BuiltList, const [
          const FullType(String),
        ]),
      ),
      'traits',
      serializers.serialize(
        object.traits,
        specifiedType: const FullType(BuiltList, const [
          const FullType(String),
        ]),
      ),
      'isFavorite',
      serializers.serialize(
        object.isFavorite,
        specifiedType: const FullType(bool),
      ),
    ];
    Object? value;
    value = object.googlePrimaryType;
    if (value != null) {
      result
        ..add('googlePrimaryType')
        ..add(
          serializers.serialize(value, specifiedType: const FullType(String)),
        );
    }
    return result;
  }

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

    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;
        case 'googlePlaceId':
          result.googlePlaceId =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(String),
                  )!
                  as String;
          break;
        case 'name':
          result.name =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(String),
                  )!
                  as String;
          break;
        case 'latitude':
          result.latitude =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(double),
                  )!
                  as double;
          break;
        case 'longitude':
          result.longitude =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(double),
                  )!
                  as double;
          break;
        case 'googlePrimaryType':
          result.googlePrimaryType =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(String),
                  )
                  as String?;
          break;
        case 'googleTypes':
          result.googleTypes.replace(
            serializers.deserialize(
                  value,
                  specifiedType: const FullType(BuiltList, const [
                    const FullType(String),
                  ]),
                )!
                as BuiltList<Object?>,
          );
          break;
        case 'traits':
          result.traits.replace(
            serializers.deserialize(
                  value,
                  specifiedType: const FullType(BuiltList, const [
                    const FullType(String),
                  ]),
                )!
                as BuiltList<Object?>,
          );
          break;
        case 'isFavorite':
          result.isFavorite =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(bool),
                  )!
                  as bool;
          break;
      }
    }

    return result.build();
  }
}

class _$GPlacesData extends GPlacesData {
  @override
  final String G__typename;
  @override
  final BuiltList<GPlacesData_places> places;

  factory _$GPlacesData([void Function(GPlacesDataBuilder)? updates]) =>
      (GPlacesDataBuilder()..update(updates))._build();

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

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

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

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

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

class GPlacesDataBuilder implements Builder<GPlacesData, GPlacesDataBuilder> {
  _$GPlacesData? _$v;

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

  ListBuilder<GPlacesData_places>? _places;
  ListBuilder<GPlacesData_places> get places =>
      _$this._places ??= ListBuilder<GPlacesData_places>();
  set places(ListBuilder<GPlacesData_places>? places) =>
      _$this._places = places;

  GPlacesDataBuilder() {
    GPlacesData._initializeBuilder(this);
  }

  GPlacesDataBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _places = $v.places.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

class _$GPlacesData_places extends GPlacesData_places {
  @override
  final String G__typename;
  @override
  final String id;
  @override
  final String googlePlaceId;
  @override
  final String name;
  @override
  final double latitude;
  @override
  final double longitude;
  @override
  final String? googlePrimaryType;
  @override
  final BuiltList<String> googleTypes;
  @override
  final BuiltList<String> traits;
  @override
  final bool isFavorite;

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

  _$GPlacesData_places._({
    required this.G__typename,
    required this.id,
    required this.googlePlaceId,
    required this.name,
    required this.latitude,
    required this.longitude,
    this.googlePrimaryType,
    required this.googleTypes,
    required this.traits,
    required this.isFavorite,
  }) : super._();
  @override
  GPlacesData_places rebuild(
    void Function(GPlacesData_placesBuilder) updates,
  ) => (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GPlacesData_places &&
        G__typename == other.G__typename &&
        id == other.id &&
        googlePlaceId == other.googlePlaceId &&
        name == other.name &&
        latitude == other.latitude &&
        longitude == other.longitude &&
        googlePrimaryType == other.googlePrimaryType &&
        googleTypes == other.googleTypes &&
        traits == other.traits &&
        isFavorite == other.isFavorite;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, G__typename.hashCode);
    _$hash = $jc(_$hash, id.hashCode);
    _$hash = $jc(_$hash, googlePlaceId.hashCode);
    _$hash = $jc(_$hash, name.hashCode);
    _$hash = $jc(_$hash, latitude.hashCode);
    _$hash = $jc(_$hash, longitude.hashCode);
    _$hash = $jc(_$hash, googlePrimaryType.hashCode);
    _$hash = $jc(_$hash, googleTypes.hashCode);
    _$hash = $jc(_$hash, traits.hashCode);
    _$hash = $jc(_$hash, isFavorite.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'GPlacesData_places')
          ..add('G__typename', G__typename)
          ..add('id', id)
          ..add('googlePlaceId', googlePlaceId)
          ..add('name', name)
          ..add('latitude', latitude)
          ..add('longitude', longitude)
          ..add('googlePrimaryType', googlePrimaryType)
          ..add('googleTypes', googleTypes)
          ..add('traits', traits)
          ..add('isFavorite', isFavorite))
        .toString();
  }
}

class GPlacesData_placesBuilder
    implements Builder<GPlacesData_places, GPlacesData_placesBuilder> {
  _$GPlacesData_places? _$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;

  String? _googlePlaceId;
  String? get googlePlaceId => _$this._googlePlaceId;
  set googlePlaceId(String? googlePlaceId) =>
      _$this._googlePlaceId = googlePlaceId;

  String? _name;
  String? get name => _$this._name;
  set name(String? name) => _$this._name = name;

  double? _latitude;
  double? get latitude => _$this._latitude;
  set latitude(double? latitude) => _$this._latitude = latitude;

  double? _longitude;
  double? get longitude => _$this._longitude;
  set longitude(double? longitude) => _$this._longitude = longitude;

  String? _googlePrimaryType;
  String? get googlePrimaryType => _$this._googlePrimaryType;
  set googlePrimaryType(String? googlePrimaryType) =>
      _$this._googlePrimaryType = googlePrimaryType;

  ListBuilder<String>? _googleTypes;
  ListBuilder<String> get googleTypes =>
      _$this._googleTypes ??= ListBuilder<String>();
  set googleTypes(ListBuilder<String>? googleTypes) =>
      _$this._googleTypes = googleTypes;

  ListBuilder<String>? _traits;
  ListBuilder<String> get traits => _$this._traits ??= ListBuilder<String>();
  set traits(ListBuilder<String>? traits) => _$this._traits = traits;

  bool? _isFavorite;
  bool? get isFavorite => _$this._isFavorite;
  set isFavorite(bool? isFavorite) => _$this._isFavorite = isFavorite;

  GPlacesData_placesBuilder() {
    GPlacesData_places._initializeBuilder(this);
  }

  GPlacesData_placesBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _id = $v.id;
      _googlePlaceId = $v.googlePlaceId;
      _name = $v.name;
      _latitude = $v.latitude;
      _longitude = $v.longitude;
      _googlePrimaryType = $v.googlePrimaryType;
      _googleTypes = $v.googleTypes.toBuilder();
      _traits = $v.traits.toBuilder();
      _isFavorite = $v.isFavorite;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$GPlacesData_places _build() {
    _$GPlacesData_places _$result;
    try {
      _$result =
          _$v ??
          _$GPlacesData_places._(
            G__typename: BuiltValueNullFieldError.checkNotNull(
              G__typename,
              r'GPlacesData_places',
              'G__typename',
            ),
            id: BuiltValueNullFieldError.checkNotNull(
              id,
              r'GPlacesData_places',
              'id',
            ),
            googlePlaceId: BuiltValueNullFieldError.checkNotNull(
              googlePlaceId,
              r'GPlacesData_places',
              'googlePlaceId',
            ),
            name: BuiltValueNullFieldError.checkNotNull(
              name,
              r'GPlacesData_places',
              'name',
            ),
            latitude: BuiltValueNullFieldError.checkNotNull(
              latitude,
              r'GPlacesData_places',
              'latitude',
            ),
            longitude: BuiltValueNullFieldError.checkNotNull(
              longitude,
              r'GPlacesData_places',
              'longitude',
            ),
            googlePrimaryType: googlePrimaryType,
            googleTypes: googleTypes.build(),
            traits: traits.build(),
            isFavorite: BuiltValueNullFieldError.checkNotNull(
              isFavorite,
              r'GPlacesData_places',
              'isFavorite',
            ),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'googleTypes';
        googleTypes.build();
        _$failedField = 'traits';
        traits.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
          r'GPlacesData_places',
          _$failedField,
          e.toString(),
        );
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
