mirrored_repositories/OLO-Games/marketplace/lib/domain
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'product.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

/// @nodoc
mixin _$Product {
  String get id => throw _privateConstructorUsedError;
  String get title => throw _privateConstructorUsedError;
  String get description => throw _privateConstructorUsedError;
  Media get icon => throw _privateConstructorUsedError;
  List<Media> get media => throw _privateConstructorUsedError;
  Price get price => throw _privateConstructorUsedError;
  double get rating => throw _privateConstructorUsedError;
  int get countBuy => throw _privateConstructorUsedError;
  List<String> get genre => throw _privateConstructorUsedError;
  List<String> get stylistics => throw _privateConstructorUsedError;
  List<Platform> get platforms => throw _privateConstructorUsedError;
  List<String> get multiplayer => throw _privateConstructorUsedError;
  List<LocalizationProduct> get localization =>
      throw _privateConstructorUsedError;
  String get developer => throw _privateConstructorUsedError;
  String get publisher => throw _privateConstructorUsedError;
  DateTime get releaseDate => throw _privateConstructorUsedError;
  List<Link> get links => throw _privateConstructorUsedError;
  List<ProductDLC> get productDlc => throw _privateConstructorUsedError;
  List<Bundle> get bundles => throw _privateConstructorUsedError;
  List<SystemRequirement> get systemRequirement =>
      throw _privateConstructorUsedError;
  List<ProductReview> get productReview => throw _privateConstructorUsedError;

  @JsonKey(ignore: true)
  $ProductCopyWith<Product> get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ProductCopyWith<$Res> {
  factory $ProductCopyWith(Product value, $Res Function(Product) then) =
      _$ProductCopyWithImpl<$Res, Product>;
  @useResult
  $Res call(
      {String id,
      String title,
      String description,
      Media icon,
      List<Media> media,
      Price price,
      double rating,
      int countBuy,
      List<String> genre,
      List<String> stylistics,
      List<Platform> platforms,
      List<String> multiplayer,
      List<LocalizationProduct> localization,
      String developer,
      String publisher,
      DateTime releaseDate,
      List<Link> links,
      List<ProductDLC> productDlc,
      List<Bundle> bundles,
      List<SystemRequirement> systemRequirement,
      List<ProductReview> productReview});

  $MediaCopyWith<$Res> get icon;
  $PriceCopyWith<$Res> get price;
}

/// @nodoc
class _$ProductCopyWithImpl<$Res, $Val extends Product>
    implements $ProductCopyWith<$Res> {
  _$ProductCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = null,
    Object? title = null,
    Object? description = null,
    Object? icon = null,
    Object? media = null,
    Object? price = null,
    Object? rating = null,
    Object? countBuy = null,
    Object? genre = null,
    Object? stylistics = null,
    Object? platforms = null,
    Object? multiplayer = null,
    Object? localization = null,
    Object? developer = null,
    Object? publisher = null,
    Object? releaseDate = null,
    Object? links = null,
    Object? productDlc = null,
    Object? bundles = null,
    Object? systemRequirement = null,
    Object? productReview = null,
  }) {
    return _then(_value.copyWith(
      id: null == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as String,
      title: null == title
          ? _value.title
          : title // ignore: cast_nullable_to_non_nullable
              as String,
      description: null == description
          ? _value.description
          : description // ignore: cast_nullable_to_non_nullable
              as String,
      icon: null == icon
          ? _value.icon
          : icon // ignore: cast_nullable_to_non_nullable
              as Media,
      media: null == media
          ? _value.media
          : media // ignore: cast_nullable_to_non_nullable
              as List<Media>,
      price: null == price
          ? _value.price
          : price // ignore: cast_nullable_to_non_nullable
              as Price,
      rating: null == rating
          ? _value.rating
          : rating // ignore: cast_nullable_to_non_nullable
              as double,
      countBuy: null == countBuy
          ? _value.countBuy
          : countBuy // ignore: cast_nullable_to_non_nullable
              as int,
      genre: null == genre
          ? _value.genre
          : genre // ignore: cast_nullable_to_non_nullable
              as List<String>,
      stylistics: null == stylistics
          ? _value.stylistics
          : stylistics // ignore: cast_nullable_to_non_nullable
              as List<String>,
      platforms: null == platforms
          ? _value.platforms
          : platforms // ignore: cast_nullable_to_non_nullable
              as List<Platform>,
      multiplayer: null == multiplayer
          ? _value.multiplayer
          : multiplayer // ignore: cast_nullable_to_non_nullable
              as List<String>,
      localization: null == localization
          ? _value.localization
          : localization // ignore: cast_nullable_to_non_nullable
              as List<LocalizationProduct>,
      developer: null == developer
          ? _value.developer
          : developer // ignore: cast_nullable_to_non_nullable
              as String,
      publisher: null == publisher
          ? _value.publisher
          : publisher // ignore: cast_nullable_to_non_nullable
              as String,
      releaseDate: null == releaseDate
          ? _value.releaseDate
          : releaseDate // ignore: cast_nullable_to_non_nullable
              as DateTime,
      links: null == links
          ? _value.links
          : links // ignore: cast_nullable_to_non_nullable
              as List<Link>,
      productDlc: null == productDlc
          ? _value.productDlc
          : productDlc // ignore: cast_nullable_to_non_nullable
              as List<ProductDLC>,
      bundles: null == bundles
          ? _value.bundles
          : bundles // ignore: cast_nullable_to_non_nullable
              as List<Bundle>,
      systemRequirement: null == systemRequirement
          ? _value.systemRequirement
          : systemRequirement // ignore: cast_nullable_to_non_nullable
              as List<SystemRequirement>,
      productReview: null == productReview
          ? _value.productReview
          : productReview // ignore: cast_nullable_to_non_nullable
              as List<ProductReview>,
    ) as $Val);
  }

  @override
  @pragma('vm:prefer-inline')
  $MediaCopyWith<$Res> get icon {
    return $MediaCopyWith<$Res>(_value.icon, (value) {
      return _then(_value.copyWith(icon: value) as $Val);
    });
  }

  @override
  @pragma('vm:prefer-inline')
  $PriceCopyWith<$Res> get price {
    return $PriceCopyWith<$Res>(_value.price, (value) {
      return _then(_value.copyWith(price: value) as $Val);
    });
  }
}

/// @nodoc
abstract class _$$_ProductCopyWith<$Res> implements $ProductCopyWith<$Res> {
  factory _$$_ProductCopyWith(
          _$_Product value, $Res Function(_$_Product) then) =
      __$$_ProductCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {String id,
      String title,
      String description,
      Media icon,
      List<Media> media,
      Price price,
      double rating,
      int countBuy,
      List<String> genre,
      List<String> stylistics,
      List<Platform> platforms,
      List<String> multiplayer,
      List<LocalizationProduct> localization,
      String developer,
      String publisher,
      DateTime releaseDate,
      List<Link> links,
      List<ProductDLC> productDlc,
      List<Bundle> bundles,
      List<SystemRequirement> systemRequirement,
      List<ProductReview> productReview});

  @override
  $MediaCopyWith<$Res> get icon;
  @override
  $PriceCopyWith<$Res> get price;
}

/// @nodoc
class __$$_ProductCopyWithImpl<$Res>
    extends _$ProductCopyWithImpl<$Res, _$_Product>
    implements _$$_ProductCopyWith<$Res> {
  __$$_ProductCopyWithImpl(_$_Product _value, $Res Function(_$_Product) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = null,
    Object? title = null,
    Object? description = null,
    Object? icon = null,
    Object? media = null,
    Object? price = null,
    Object? rating = null,
    Object? countBuy = null,
    Object? genre = null,
    Object? stylistics = null,
    Object? platforms = null,
    Object? multiplayer = null,
    Object? localization = null,
    Object? developer = null,
    Object? publisher = null,
    Object? releaseDate = null,
    Object? links = null,
    Object? productDlc = null,
    Object? bundles = null,
    Object? systemRequirement = null,
    Object? productReview = null,
  }) {
    return _then(_$_Product(
      id: null == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as String,
      title: null == title
          ? _value.title
          : title // ignore: cast_nullable_to_non_nullable
              as String,
      description: null == description
          ? _value.description
          : description // ignore: cast_nullable_to_non_nullable
              as String,
      icon: null == icon
          ? _value.icon
          : icon // ignore: cast_nullable_to_non_nullable
              as Media,
      media: null == media
          ? _value._media
          : media // ignore: cast_nullable_to_non_nullable
              as List<Media>,
      price: null == price
          ? _value.price
          : price // ignore: cast_nullable_to_non_nullable
              as Price,
      rating: null == rating
          ? _value.rating
          : rating // ignore: cast_nullable_to_non_nullable
              as double,
      countBuy: null == countBuy
          ? _value.countBuy
          : countBuy // ignore: cast_nullable_to_non_nullable
              as int,
      genre: null == genre
          ? _value._genre
          : genre // ignore: cast_nullable_to_non_nullable
              as List<String>,
      stylistics: null == stylistics
          ? _value._stylistics
          : stylistics // ignore: cast_nullable_to_non_nullable
              as List<String>,
      platforms: null == platforms
          ? _value._platforms
          : platforms // ignore: cast_nullable_to_non_nullable
              as List<Platform>,
      multiplayer: null == multiplayer
          ? _value._multiplayer
          : multiplayer // ignore: cast_nullable_to_non_nullable
              as List<String>,
      localization: null == localization
          ? _value._localization
          : localization // ignore: cast_nullable_to_non_nullable
              as List<LocalizationProduct>,
      developer: null == developer
          ? _value.developer
          : developer // ignore: cast_nullable_to_non_nullable
              as String,
      publisher: null == publisher
          ? _value.publisher
          : publisher // ignore: cast_nullable_to_non_nullable
              as String,
      releaseDate: null == releaseDate
          ? _value.releaseDate
          : releaseDate // ignore: cast_nullable_to_non_nullable
              as DateTime,
      links: null == links
          ? _value._links
          : links // ignore: cast_nullable_to_non_nullable
              as List<Link>,
      productDlc: null == productDlc
          ? _value._productDlc
          : productDlc // ignore: cast_nullable_to_non_nullable
              as List<ProductDLC>,
      bundles: null == bundles
          ? _value._bundles
          : bundles // ignore: cast_nullable_to_non_nullable
              as List<Bundle>,
      systemRequirement: null == systemRequirement
          ? _value._systemRequirement
          : systemRequirement // ignore: cast_nullable_to_non_nullable
              as List<SystemRequirement>,
      productReview: null == productReview
          ? _value._productReview
          : productReview // ignore: cast_nullable_to_non_nullable
              as List<ProductReview>,
    ));
  }
}

/// @nodoc

class _$_Product extends _Product {
  const _$_Product(
      {required this.id,
      required this.title,
      required this.description,
      required this.icon,
      required final List<Media> media,
      required this.price,
      required this.rating,
      required this.countBuy,
      required final List<String> genre,
      required final List<String> stylistics,
      required final List<Platform> platforms,
      required final List<String> multiplayer,
      required final List<LocalizationProduct> localization,
      required this.developer,
      required this.publisher,
      required this.releaseDate,
      required final List<Link> links,
      required final List<ProductDLC> productDlc,
      required final List<Bundle> bundles,
      required final List<SystemRequirement> systemRequirement,
      required final List<ProductReview> productReview})
      : _media = media,
        _genre = genre,
        _stylistics = stylistics,
        _platforms = platforms,
        _multiplayer = multiplayer,
        _localization = localization,
        _links = links,
        _productDlc = productDlc,
        _bundles = bundles,
        _systemRequirement = systemRequirement,
        _productReview = productReview,
        super._();

  @override
  final String id;
  @override
  final String title;
  @override
  final String description;
  @override
  final Media icon;
  final List<Media> _media;
  @override
  List<Media> get media {
    if (_media is EqualUnmodifiableListView) return _media;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_media);
  }

  @override
  final Price price;
  @override
  final double rating;
  @override
  final int countBuy;
  final List<String> _genre;
  @override
  List<String> get genre {
    if (_genre is EqualUnmodifiableListView) return _genre;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_genre);
  }

  final List<String> _stylistics;
  @override
  List<String> get stylistics {
    if (_stylistics is EqualUnmodifiableListView) return _stylistics;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_stylistics);
  }

  final List<Platform> _platforms;
  @override
  List<Platform> get platforms {
    if (_platforms is EqualUnmodifiableListView) return _platforms;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_platforms);
  }

  final List<String> _multiplayer;
  @override
  List<String> get multiplayer {
    if (_multiplayer is EqualUnmodifiableListView) return _multiplayer;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_multiplayer);
  }

  final List<LocalizationProduct> _localization;
  @override
  List<LocalizationProduct> get localization {
    if (_localization is EqualUnmodifiableListView) return _localization;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_localization);
  }

  @override
  final String developer;
  @override
  final String publisher;
  @override
  final DateTime releaseDate;
  final List<Link> _links;
  @override
  List<Link> get links {
    if (_links is EqualUnmodifiableListView) return _links;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_links);
  }

  final List<ProductDLC> _productDlc;
  @override
  List<ProductDLC> get productDlc {
    if (_productDlc is EqualUnmodifiableListView) return _productDlc;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_productDlc);
  }

  final List<Bundle> _bundles;
  @override
  List<Bundle> get bundles {
    if (_bundles is EqualUnmodifiableListView) return _bundles;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_bundles);
  }

  final List<SystemRequirement> _systemRequirement;
  @override
  List<SystemRequirement> get systemRequirement {
    if (_systemRequirement is EqualUnmodifiableListView)
      return _systemRequirement;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_systemRequirement);
  }

  final List<ProductReview> _productReview;
  @override
  List<ProductReview> get productReview {
    if (_productReview is EqualUnmodifiableListView) return _productReview;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_productReview);
  }

  @override
  String toString() {
    return 'Product(id: $id, title: $title, description: $description, icon: $icon, media: $media, price: $price, rating: $rating, countBuy: $countBuy, genre: $genre, stylistics: $stylistics, platforms: $platforms, multiplayer: $multiplayer, localization: $localization, developer: $developer, publisher: $publisher, releaseDate: $releaseDate, links: $links, productDlc: $productDlc, bundles: $bundles, systemRequirement: $systemRequirement, productReview: $productReview)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_Product &&
            (identical(other.id, id) || other.id == id) &&
            (identical(other.title, title) || other.title == title) &&
            (identical(other.description, description) ||
                other.description == description) &&
            (identical(other.icon, icon) || other.icon == icon) &&
            const DeepCollectionEquality().equals(other._media, _media) &&
            (identical(other.price, price) || other.price == price) &&
            (identical(other.rating, rating) || other.rating == rating) &&
            (identical(other.countBuy, countBuy) ||
                other.countBuy == countBuy) &&
            const DeepCollectionEquality().equals(other._genre, _genre) &&
            const DeepCollectionEquality()
                .equals(other._stylistics, _stylistics) &&
            const DeepCollectionEquality()
                .equals(other._platforms, _platforms) &&
            const DeepCollectionEquality()
                .equals(other._multiplayer, _multiplayer) &&
            const DeepCollectionEquality()
                .equals(other._localization, _localization) &&
            (identical(other.developer, developer) ||
                other.developer == developer) &&
            (identical(other.publisher, publisher) ||
                other.publisher == publisher) &&
            (identical(other.releaseDate, releaseDate) ||
                other.releaseDate == releaseDate) &&
            const DeepCollectionEquality().equals(other._links, _links) &&
            const DeepCollectionEquality()
                .equals(other._productDlc, _productDlc) &&
            const DeepCollectionEquality().equals(other._bundles, _bundles) &&
            const DeepCollectionEquality()
                .equals(other._systemRequirement, _systemRequirement) &&
            const DeepCollectionEquality()
                .equals(other._productReview, _productReview));
  }

  @override
  int get hashCode => Object.hashAll([
        runtimeType,
        id,
        title,
        description,
        icon,
        const DeepCollectionEquality().hash(_media),
        price,
        rating,
        countBuy,
        const DeepCollectionEquality().hash(_genre),
        const DeepCollectionEquality().hash(_stylistics),
        const DeepCollectionEquality().hash(_platforms),
        const DeepCollectionEquality().hash(_multiplayer),
        const DeepCollectionEquality().hash(_localization),
        developer,
        publisher,
        releaseDate,
        const DeepCollectionEquality().hash(_links),
        const DeepCollectionEquality().hash(_productDlc),
        const DeepCollectionEquality().hash(_bundles),
        const DeepCollectionEquality().hash(_systemRequirement),
        const DeepCollectionEquality().hash(_productReview)
      ]);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_ProductCopyWith<_$_Product> get copyWith =>
      __$$_ProductCopyWithImpl<_$_Product>(this, _$identity);
}

abstract class _Product extends Product {
  const factory _Product(
      {required final String id,
      required final String title,
      required final String description,
      required final Media icon,
      required final List<Media> media,
      required final Price price,
      required final double rating,
      required final int countBuy,
      required final List<String> genre,
      required final List<String> stylistics,
      required final List<Platform> platforms,
      required final List<String> multiplayer,
      required final List<LocalizationProduct> localization,
      required final String developer,
      required final String publisher,
      required final DateTime releaseDate,
      required final List<Link> links,
      required final List<ProductDLC> productDlc,
      required final List<Bundle> bundles,
      required final List<SystemRequirement> systemRequirement,
      required final List<ProductReview> productReview}) = _$_Product;
  const _Product._() : super._();

  @override
  String get id;
  @override
  String get title;
  @override
  String get description;
  @override
  Media get icon;
  @override
  List<Media> get media;
  @override
  Price get price;
  @override
  double get rating;
  @override
  int get countBuy;
  @override
  List<String> get genre;
  @override
  List<String> get stylistics;
  @override
  List<Platform> get platforms;
  @override
  List<String> get multiplayer;
  @override
  List<LocalizationProduct> get localization;
  @override
  String get developer;
  @override
  String get publisher;
  @override
  DateTime get releaseDate;
  @override
  List<Link> get links;
  @override
  List<ProductDLC> get productDlc;
  @override
  List<Bundle> get bundles;
  @override
  List<SystemRequirement> get systemRequirement;
  @override
  List<ProductReview> get productReview;
  @override
  @JsonKey(ignore: true)
  _$$_ProductCopyWith<_$_Product> get copyWith =>
      throw _privateConstructorUsedError;
}
