// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GFavoritePlacesData> _$gFavoritePlacesDataSerializer =
    _$GFavoritePlacesDataSerializer();
Serializer<GFavoritePlacesData_favoritePlaces>
_$gFavoritePlacesDataFavoritePlacesSerializer =
    _$GFavoritePlacesData_favoritePlacesSerializer();
Serializer<GFavoritePlacesData_favoritePlaces_experiences>
_$gFavoritePlacesDataFavoritePlacesExperiencesSerializer =
    _$GFavoritePlacesData_favoritePlaces_experiencesSerializer();

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

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

    return result;
  }

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

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

    return result.build();
  }
}

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

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    GFavoritePlacesData_favoritePlaces 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(GFavoritePlacesData_favoritePlaces_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
  GFavoritePlacesData_favoritePlaces deserialize(
    Serializers serializers,
    Iterable<Object?> serialized, {
    FullType specifiedType = FullType.unspecified,
  }) {
    final result = GFavoritePlacesData_favoritePlacesBuilder();

    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(
                      GFavoritePlacesData_favoritePlaces_experiences,
                    ),
                  ]),
                )!
                as BuiltList<Object?>,
          );
          break;
      }
    }

    return result.build();
  }
}

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

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    GFavoritePlacesData_favoritePlaces_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
  GFavoritePlacesData_favoritePlaces_experiences deserialize(
    Serializers serializers,
    Iterable<Object?> serialized, {
    FullType specifiedType = FullType.unspecified,
  }) {
    final result = GFavoritePlacesData_favoritePlaces_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 _$GFavoritePlacesData extends GFavoritePlacesData {
  @override
  final String G__typename;
  @override
  final BuiltList<GFavoritePlacesData_favoritePlaces> favoritePlaces;

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

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

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

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

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

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

class GFavoritePlacesDataBuilder
    implements Builder<GFavoritePlacesData, GFavoritePlacesDataBuilder> {
  _$GFavoritePlacesData? _$v;

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

  ListBuilder<GFavoritePlacesData_favoritePlaces>? _favoritePlaces;
  ListBuilder<GFavoritePlacesData_favoritePlaces> get favoritePlaces =>
      _$this._favoritePlaces ??=
          ListBuilder<GFavoritePlacesData_favoritePlaces>();
  set favoritePlaces(
    ListBuilder<GFavoritePlacesData_favoritePlaces>? favoritePlaces,
  ) => _$this._favoritePlaces = favoritePlaces;

  GFavoritePlacesDataBuilder() {
    GFavoritePlacesData._initializeBuilder(this);
  }

  GFavoritePlacesDataBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _favoritePlaces = $v.favoritePlaces.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

class _$GFavoritePlacesData_favoritePlaces
    extends GFavoritePlacesData_favoritePlaces {
  @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<GFavoritePlacesData_favoritePlaces_experiences> experiences;

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

  _$GFavoritePlacesData_favoritePlaces._({
    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
  GFavoritePlacesData_favoritePlaces rebuild(
    void Function(GFavoritePlacesData_favoritePlacesBuilder) updates,
  ) => (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GFavoritePlacesData_favoritePlaces &&
        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'GFavoritePlacesData_favoritePlaces')
          ..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 GFavoritePlacesData_favoritePlacesBuilder
    implements
        Builder<
          GFavoritePlacesData_favoritePlaces,
          GFavoritePlacesData_favoritePlacesBuilder
        > {
  _$GFavoritePlacesData_favoritePlaces? _$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<GFavoritePlacesData_favoritePlaces_experiences>? _experiences;
  ListBuilder<GFavoritePlacesData_favoritePlaces_experiences> get experiences =>
      _$this._experiences ??=
          ListBuilder<GFavoritePlacesData_favoritePlaces_experiences>();
  set experiences(
    ListBuilder<GFavoritePlacesData_favoritePlaces_experiences>? experiences,
  ) => _$this._experiences = experiences;

  GFavoritePlacesData_favoritePlacesBuilder() {
    GFavoritePlacesData_favoritePlaces._initializeBuilder(this);
  }

  GFavoritePlacesData_favoritePlacesBuilder 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(GFavoritePlacesData_favoritePlaces other) {
    _$v = other as _$GFavoritePlacesData_favoritePlaces;
  }

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

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

  _$GFavoritePlacesData_favoritePlaces _build() {
    _$GFavoritePlacesData_favoritePlaces _$result;
    try {
      _$result =
          _$v ??
          _$GFavoritePlacesData_favoritePlaces._(
            G__typename: BuiltValueNullFieldError.checkNotNull(
              G__typename,
              r'GFavoritePlacesData_favoritePlaces',
              'G__typename',
            ),
            id: BuiltValueNullFieldError.checkNotNull(
              id,
              r'GFavoritePlacesData_favoritePlaces',
              'id',
            ),
            googlePlaceId: BuiltValueNullFieldError.checkNotNull(
              googlePlaceId,
              r'GFavoritePlacesData_favoritePlaces',
              'googlePlaceId',
            ),
            name: BuiltValueNullFieldError.checkNotNull(
              name,
              r'GFavoritePlacesData_favoritePlaces',
              'name',
            ),
            latitude: BuiltValueNullFieldError.checkNotNull(
              latitude,
              r'GFavoritePlacesData_favoritePlaces',
              'latitude',
            ),
            longitude: BuiltValueNullFieldError.checkNotNull(
              longitude,
              r'GFavoritePlacesData_favoritePlaces',
              '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'GFavoritePlacesData_favoritePlaces',
              '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'GFavoritePlacesData_favoritePlaces',
          _$failedField,
          e.toString(),
        );
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

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

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

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

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GFavoritePlacesData_favoritePlaces_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'GFavoritePlacesData_favoritePlaces_experiences',
          )
          ..add('G__typename', G__typename)
          ..add('id', id)
          ..add('status', status)
          ..add('createdAt', createdAt))
        .toString();
  }
}

class GFavoritePlacesData_favoritePlaces_experiencesBuilder
    implements
        Builder<
          GFavoritePlacesData_favoritePlaces_experiences,
          GFavoritePlacesData_favoritePlaces_experiencesBuilder
        > {
  _$GFavoritePlacesData_favoritePlaces_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;

  GFavoritePlacesData_favoritePlaces_experiencesBuilder() {
    GFavoritePlacesData_favoritePlaces_experiences._initializeBuilder(this);
  }

  GFavoritePlacesData_favoritePlaces_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(GFavoritePlacesData_favoritePlaces_experiences other) {
    _$v = other as _$GFavoritePlacesData_favoritePlaces_experiences;
  }

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
