// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GNearbyPlacesData> _$gNearbyPlacesDataSerializer =
    _$GNearbyPlacesDataSerializer();
Serializer<GNearbyPlacesData_nearbyPlaces>
_$gNearbyPlacesDataNearbyPlacesSerializer =
    _$GNearbyPlacesData_nearbyPlacesSerializer();
Serializer<GNearbyPlacesData_nearbyPlaces_experiences>
_$gNearbyPlacesDataNearbyPlacesExperiencesSerializer =
    _$GNearbyPlacesData_nearbyPlaces_experiencesSerializer();

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

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

    return result;
  }

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

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

    return result.build();
  }
}

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

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    GNearbyPlacesData_nearbyPlaces 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),
        ]),
      ),
      'photoUrls',
      serializers.serialize(
        object.photoUrls,
        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),
      ),
      'experiences',
      serializers.serialize(
        object.experiences,
        specifiedType: const FullType(BuiltList, const [
          const FullType(GNearbyPlacesData_nearbyPlaces_experiences),
        ]),
      ),
    ];
    Object? value;
    value = object.googlePrimaryType;
    if (value != null) {
      result
        ..add('googlePrimaryType')
        ..add(
          serializers.serialize(value, specifiedType: const FullType(String)),
        );
    }
    value = object.googleBusinessStatus;
    if (value != null) {
      result
        ..add('googleBusinessStatus')
        ..add(
          serializers.serialize(value, specifiedType: const FullType(String)),
        );
    }
    value = object.googleRating;
    if (value != null) {
      result
        ..add('googleRating')
        ..add(
          serializers.serialize(value, specifiedType: const FullType(double)),
        );
    }
    value = object.googleUserRatingCount;
    if (value != null) {
      result
        ..add('googleUserRatingCount')
        ..add(serializers.serialize(value, specifiedType: const FullType(int)));
    }
    value = object.googleRegularOpeningHours;
    if (value != null) {
      result
        ..add('googleRegularOpeningHours')
        ..add(
          serializers.serialize(
            value,
            specifiedType: const FullType(_i2.JsonObject),
          ),
        );
    }
    value = object.googleCurrentOpeningHours;
    if (value != null) {
      result
        ..add('googleCurrentOpeningHours')
        ..add(
          serializers.serialize(
            value,
            specifiedType: const FullType(_i2.JsonObject),
          ),
        );
    }
    return result;
  }

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

    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 'googleBusinessStatus':
          result.googleBusinessStatus =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(String),
                  )
                  as String?;
          break;
        case 'googleRating':
          result.googleRating =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(double),
                  )
                  as double?;
          break;
        case 'googleUserRatingCount':
          result.googleUserRatingCount =
              serializers.deserialize(value, specifiedType: const FullType(int))
                  as int?;
          break;
        case 'googleRegularOpeningHours':
          result.googleRegularOpeningHours =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(_i2.JsonObject),
                  )
                  as _i2.JsonObject?;
          break;
        case 'googleCurrentOpeningHours':
          result.googleCurrentOpeningHours =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(_i2.JsonObject),
                  )
                  as _i2.JsonObject?;
          break;
        case 'photoUrls':
          result.photoUrls.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;
        case 'experiences':
          result.experiences.replace(
            serializers.deserialize(
                  value,
                  specifiedType: const FullType(BuiltList, const [
                    const FullType(GNearbyPlacesData_nearbyPlaces_experiences),
                  ]),
                )!
                as BuiltList<Object?>,
          );
          break;
      }
    }

    return result.build();
  }
}

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

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    GNearbyPlacesData_nearbyPlaces_experiences 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)),
      'status',
      serializers.serialize(
        object.status,
        specifiedType: const FullType(_i3.GVoiceExperienceStatus),
      ),
      'createdAt',
      serializers.serialize(
        object.createdAt,
        specifiedType: const FullType(String),
      ),
    ];

    return result;
  }

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

    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 'status':
          result.status =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(_i3.GVoiceExperienceStatus),
                  )!
                  as _i3.GVoiceExperienceStatus;
          break;
        case 'createdAt':
          result.createdAt =
              serializers.deserialize(
                    value,
                    specifiedType: const FullType(String),
                  )!
                  as String;
          break;
      }
    }

    return result.build();
  }
}

class _$GNearbyPlacesData extends GNearbyPlacesData {
  @override
  final String G__typename;
  @override
  final BuiltList<GNearbyPlacesData_nearbyPlaces> nearbyPlaces;

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

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

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

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

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

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

class GNearbyPlacesDataBuilder
    implements Builder<GNearbyPlacesData, GNearbyPlacesDataBuilder> {
  _$GNearbyPlacesData? _$v;

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

  ListBuilder<GNearbyPlacesData_nearbyPlaces>? _nearbyPlaces;
  ListBuilder<GNearbyPlacesData_nearbyPlaces> get nearbyPlaces =>
      _$this._nearbyPlaces ??= ListBuilder<GNearbyPlacesData_nearbyPlaces>();
  set nearbyPlaces(ListBuilder<GNearbyPlacesData_nearbyPlaces>? nearbyPlaces) =>
      _$this._nearbyPlaces = nearbyPlaces;

  GNearbyPlacesDataBuilder() {
    GNearbyPlacesData._initializeBuilder(this);
  }

  GNearbyPlacesDataBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _nearbyPlaces = $v.nearbyPlaces.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

class _$GNearbyPlacesData_nearbyPlaces extends GNearbyPlacesData_nearbyPlaces {
  @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 String? googleBusinessStatus;
  @override
  final double? googleRating;
  @override
  final int? googleUserRatingCount;
  @override
  final _i2.JsonObject? googleRegularOpeningHours;
  @override
  final _i2.JsonObject? googleCurrentOpeningHours;
  @override
  final BuiltList<String> photoUrls;
  @override
  final BuiltList<String> traits;
  @override
  final bool isFavorite;
  @override
  final BuiltList<GNearbyPlacesData_nearbyPlaces_experiences> experiences;

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

  _$GNearbyPlacesData_nearbyPlaces._({
    required this.G__typename,
    required this.id,
    required this.googlePlaceId,
    required this.name,
    required this.latitude,
    required this.longitude,
    this.googlePrimaryType,
    required this.googleTypes,
    this.googleBusinessStatus,
    this.googleRating,
    this.googleUserRatingCount,
    this.googleRegularOpeningHours,
    this.googleCurrentOpeningHours,
    required this.photoUrls,
    required this.traits,
    required this.isFavorite,
    required this.experiences,
  }) : super._();
  @override
  GNearbyPlacesData_nearbyPlaces rebuild(
    void Function(GNearbyPlacesData_nearbyPlacesBuilder) updates,
  ) => (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GNearbyPlacesData_nearbyPlaces &&
        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 &&
        googleBusinessStatus == other.googleBusinessStatus &&
        googleRating == other.googleRating &&
        googleUserRatingCount == other.googleUserRatingCount &&
        googleRegularOpeningHours == other.googleRegularOpeningHours &&
        googleCurrentOpeningHours == other.googleCurrentOpeningHours &&
        photoUrls == other.photoUrls &&
        traits == other.traits &&
        isFavorite == other.isFavorite &&
        experiences == other.experiences;
  }

  @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, googleBusinessStatus.hashCode);
    _$hash = $jc(_$hash, googleRating.hashCode);
    _$hash = $jc(_$hash, googleUserRatingCount.hashCode);
    _$hash = $jc(_$hash, googleRegularOpeningHours.hashCode);
    _$hash = $jc(_$hash, googleCurrentOpeningHours.hashCode);
    _$hash = $jc(_$hash, photoUrls.hashCode);
    _$hash = $jc(_$hash, traits.hashCode);
    _$hash = $jc(_$hash, isFavorite.hashCode);
    _$hash = $jc(_$hash, experiences.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'GNearbyPlacesData_nearbyPlaces')
          ..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('googleBusinessStatus', googleBusinessStatus)
          ..add('googleRating', googleRating)
          ..add('googleUserRatingCount', googleUserRatingCount)
          ..add('googleRegularOpeningHours', googleRegularOpeningHours)
          ..add('googleCurrentOpeningHours', googleCurrentOpeningHours)
          ..add('photoUrls', photoUrls)
          ..add('traits', traits)
          ..add('isFavorite', isFavorite)
          ..add('experiences', experiences))
        .toString();
  }
}

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

  String? _googleBusinessStatus;
  String? get googleBusinessStatus => _$this._googleBusinessStatus;
  set googleBusinessStatus(String? googleBusinessStatus) =>
      _$this._googleBusinessStatus = googleBusinessStatus;

  double? _googleRating;
  double? get googleRating => _$this._googleRating;
  set googleRating(double? googleRating) => _$this._googleRating = googleRating;

  int? _googleUserRatingCount;
  int? get googleUserRatingCount => _$this._googleUserRatingCount;
  set googleUserRatingCount(int? googleUserRatingCount) =>
      _$this._googleUserRatingCount = googleUserRatingCount;

  _i2.JsonObject? _googleRegularOpeningHours;
  _i2.JsonObject? get googleRegularOpeningHours =>
      _$this._googleRegularOpeningHours;
  set googleRegularOpeningHours(_i2.JsonObject? googleRegularOpeningHours) =>
      _$this._googleRegularOpeningHours = googleRegularOpeningHours;

  _i2.JsonObject? _googleCurrentOpeningHours;
  _i2.JsonObject? get googleCurrentOpeningHours =>
      _$this._googleCurrentOpeningHours;
  set googleCurrentOpeningHours(_i2.JsonObject? googleCurrentOpeningHours) =>
      _$this._googleCurrentOpeningHours = googleCurrentOpeningHours;

  ListBuilder<String>? _photoUrls;
  ListBuilder<String> get photoUrls =>
      _$this._photoUrls ??= ListBuilder<String>();
  set photoUrls(ListBuilder<String>? photoUrls) =>
      _$this._photoUrls = photoUrls;

  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;

  ListBuilder<GNearbyPlacesData_nearbyPlaces_experiences>? _experiences;
  ListBuilder<GNearbyPlacesData_nearbyPlaces_experiences> get experiences =>
      _$this._experiences ??=
          ListBuilder<GNearbyPlacesData_nearbyPlaces_experiences>();
  set experiences(
    ListBuilder<GNearbyPlacesData_nearbyPlaces_experiences>? experiences,
  ) => _$this._experiences = experiences;

  GNearbyPlacesData_nearbyPlacesBuilder() {
    GNearbyPlacesData_nearbyPlaces._initializeBuilder(this);
  }

  GNearbyPlacesData_nearbyPlacesBuilder 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();
      _googleBusinessStatus = $v.googleBusinessStatus;
      _googleRating = $v.googleRating;
      _googleUserRatingCount = $v.googleUserRatingCount;
      _googleRegularOpeningHours = $v.googleRegularOpeningHours;
      _googleCurrentOpeningHours = $v.googleCurrentOpeningHours;
      _photoUrls = $v.photoUrls.toBuilder();
      _traits = $v.traits.toBuilder();
      _isFavorite = $v.isFavorite;
      _experiences = $v.experiences.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

  _$GNearbyPlacesData_nearbyPlaces _build() {
    _$GNearbyPlacesData_nearbyPlaces _$result;
    try {
      _$result =
          _$v ??
          _$GNearbyPlacesData_nearbyPlaces._(
            G__typename: BuiltValueNullFieldError.checkNotNull(
              G__typename,
              r'GNearbyPlacesData_nearbyPlaces',
              'G__typename',
            ),
            id: BuiltValueNullFieldError.checkNotNull(
              id,
              r'GNearbyPlacesData_nearbyPlaces',
              'id',
            ),
            googlePlaceId: BuiltValueNullFieldError.checkNotNull(
              googlePlaceId,
              r'GNearbyPlacesData_nearbyPlaces',
              'googlePlaceId',
            ),
            name: BuiltValueNullFieldError.checkNotNull(
              name,
              r'GNearbyPlacesData_nearbyPlaces',
              'name',
            ),
            latitude: BuiltValueNullFieldError.checkNotNull(
              latitude,
              r'GNearbyPlacesData_nearbyPlaces',
              'latitude',
            ),
            longitude: BuiltValueNullFieldError.checkNotNull(
              longitude,
              r'GNearbyPlacesData_nearbyPlaces',
              'longitude',
            ),
            googlePrimaryType: googlePrimaryType,
            googleTypes: googleTypes.build(),
            googleBusinessStatus: googleBusinessStatus,
            googleRating: googleRating,
            googleUserRatingCount: googleUserRatingCount,
            googleRegularOpeningHours: googleRegularOpeningHours,
            googleCurrentOpeningHours: googleCurrentOpeningHours,
            photoUrls: photoUrls.build(),
            traits: traits.build(),
            isFavorite: BuiltValueNullFieldError.checkNotNull(
              isFavorite,
              r'GNearbyPlacesData_nearbyPlaces',
              'isFavorite',
            ),
            experiences: experiences.build(),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'googleTypes';
        googleTypes.build();

        _$failedField = 'photoUrls';
        photoUrls.build();
        _$failedField = 'traits';
        traits.build();

        _$failedField = 'experiences';
        experiences.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
          r'GNearbyPlacesData_nearbyPlaces',
          _$failedField,
          e.toString(),
        );
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

class _$GNearbyPlacesData_nearbyPlaces_experiences
    extends GNearbyPlacesData_nearbyPlaces_experiences {
  @override
  final String G__typename;
  @override
  final String id;
  @override
  final _i3.GVoiceExperienceStatus status;
  @override
  final String createdAt;

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

  _$GNearbyPlacesData_nearbyPlaces_experiences._({
    required this.G__typename,
    required this.id,
    required this.status,
    required this.createdAt,
  }) : super._();
  @override
  GNearbyPlacesData_nearbyPlaces_experiences rebuild(
    void Function(GNearbyPlacesData_nearbyPlaces_experiencesBuilder) updates,
  ) => (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GNearbyPlacesData_nearbyPlaces_experiences &&
        G__typename == other.G__typename &&
        id == other.id &&
        status == other.status &&
        createdAt == other.createdAt;
  }

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(
            r'GNearbyPlacesData_nearbyPlaces_experiences',
          )
          ..add('G__typename', G__typename)
          ..add('id', id)
          ..add('status', status)
          ..add('createdAt', createdAt))
        .toString();
  }
}

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

  _i3.GVoiceExperienceStatus? _status;
  _i3.GVoiceExperienceStatus? get status => _$this._status;
  set status(_i3.GVoiceExperienceStatus? status) => _$this._status = status;

  String? _createdAt;
  String? get createdAt => _$this._createdAt;
  set createdAt(String? createdAt) => _$this._createdAt = createdAt;

  GNearbyPlacesData_nearbyPlaces_experiencesBuilder() {
    GNearbyPlacesData_nearbyPlaces_experiences._initializeBuilder(this);
  }

  GNearbyPlacesData_nearbyPlaces_experiencesBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _id = $v.id;
      _status = $v.status;
      _createdAt = $v.createdAt;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$GNearbyPlacesData_nearbyPlaces_experiences _build() {
    final _$result =
        _$v ??
        _$GNearbyPlacesData_nearbyPlaces_experiences._(
          G__typename: BuiltValueNullFieldError.checkNotNull(
            G__typename,
            r'GNearbyPlacesData_nearbyPlaces_experiences',
            'G__typename',
          ),
          id: BuiltValueNullFieldError.checkNotNull(
            id,
            r'GNearbyPlacesData_nearbyPlaces_experiences',
            'id',
          ),
          status: BuiltValueNullFieldError.checkNotNull(
            status,
            r'GNearbyPlacesData_nearbyPlaces_experiences',
            'status',
          ),
          createdAt: BuiltValueNullFieldError.checkNotNull(
            createdAt,
            r'GNearbyPlacesData_nearbyPlaces_experiences',
            'createdAt',
          ),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
