// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

Serializer<GPlaceData> _$gPlaceDataSerializer = _$GPlaceDataSerializer();
Serializer<GPlaceData_place> _$gPlaceDataPlaceSerializer =
    _$GPlaceData_placeSerializer();

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

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

    return result;
  }

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

    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 'place':
          result.place.replace(
            serializers.deserialize(
                  value,
                  specifiedType: const FullType(GPlaceData_place),
                )!
                as GPlaceData_place,
          );
          break;
      }
    }

    return result.build();
  }
}

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

  @override
  Iterable<Object?> serialize(
    Serializers serializers,
    GPlaceData_place 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),
      ),
    ];
    Object? value;
    value = object.googlePrimaryType;
    if (value != null) {
      result
        ..add('googlePrimaryType')
        ..add(
          serializers.serialize(value, specifiedType: const FullType(String)),
        );
    }
    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
  GPlaceData_place deserialize(
    Serializers serializers,
    Iterable<Object?> serialized, {
    FullType specifiedType = FullType.unspecified,
  }) {
    final result = GPlaceData_placeBuilder();

    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 '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;
      }
    }

    return result.build();
  }
}

class _$GPlaceData extends GPlaceData {
  @override
  final String G__typename;
  @override
  final GPlaceData_place place;

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

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

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

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

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

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

class GPlaceDataBuilder implements Builder<GPlaceData, GPlaceDataBuilder> {
  _$GPlaceData? _$v;

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

  GPlaceData_placeBuilder? _place;
  GPlaceData_placeBuilder get place =>
      _$this._place ??= GPlaceData_placeBuilder();
  set place(GPlaceData_placeBuilder? place) => _$this._place = place;

  GPlaceDataBuilder() {
    GPlaceData._initializeBuilder(this);
  }

  GPlaceDataBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _G__typename = $v.G__typename;
      _place = $v.place.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

class _$GPlaceData_place extends GPlaceData_place {
  @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 _i2.JsonObject? googleRegularOpeningHours;
  @override
  final _i2.JsonObject? googleCurrentOpeningHours;
  @override
  final BuiltList<String> photoUrls;
  @override
  final BuiltList<String> traits;
  @override
  final bool isFavorite;

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

  _$GPlaceData_place._({
    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.googleRegularOpeningHours,
    this.googleCurrentOpeningHours,
    required this.photoUrls,
    required this.traits,
    required this.isFavorite,
  }) : super._();
  @override
  GPlaceData_place rebuild(void Function(GPlaceData_placeBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GPlaceData_place &&
        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 &&
        googleRegularOpeningHours == other.googleRegularOpeningHours &&
        googleCurrentOpeningHours == other.googleCurrentOpeningHours &&
        photoUrls == other.photoUrls &&
        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, googleRegularOpeningHours.hashCode);
    _$hash = $jc(_$hash, googleCurrentOpeningHours.hashCode);
    _$hash = $jc(_$hash, photoUrls.hashCode);
    _$hash = $jc(_$hash, traits.hashCode);
    _$hash = $jc(_$hash, isFavorite.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

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

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

  _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;

  GPlaceData_placeBuilder() {
    GPlaceData_place._initializeBuilder(this);
  }

  GPlaceData_placeBuilder 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();
      _googleRegularOpeningHours = $v.googleRegularOpeningHours;
      _googleCurrentOpeningHours = $v.googleCurrentOpeningHours;
      _photoUrls = $v.photoUrls.toBuilder();
      _traits = $v.traits.toBuilder();
      _isFavorite = $v.isFavorite;
      _$v = null;
    }
    return this;
  }

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

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
