mirrored_repositories/Flutter-Movie-App/lib/model
// 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

part of 'Casts.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');

Casts _$CastsFromJson(Map<String, dynamic> json) {
  return _Casts.fromJson(json);
}

/// @nodoc
mixin _$Casts {
  bool get adult => throw _privateConstructorUsedError;
  int get gender => throw _privateConstructorUsedError;
  int get id => throw _privateConstructorUsedError;
  String get known_for_department => throw _privateConstructorUsedError;
  String get name => throw _privateConstructorUsedError;
  String get original_name => throw _privateConstructorUsedError;
  double get popularity => throw _privateConstructorUsedError;
  String? get profile_path => throw _privateConstructorUsedError;
  int get cast_id => throw _privateConstructorUsedError;
  String get character => throw _privateConstructorUsedError;
  String get credit_id => throw _privateConstructorUsedError;
  int get order => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $CastsCopyWith<Casts> get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $CastsCopyWith<$Res> {
  factory $CastsCopyWith(Casts value, $Res Function(Casts) then) =
      _$CastsCopyWithImpl<$Res>;
  $Res call(
      {bool adult,
      int gender,
      int id,
      String known_for_department,
      String name,
      String original_name,
      double popularity,
      String? profile_path,
      int cast_id,
      String character,
      String credit_id,
      int order});
}

/// @nodoc
class _$CastsCopyWithImpl<$Res> implements $CastsCopyWith<$Res> {
  _$CastsCopyWithImpl(this._value, this._then);

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

  @override
  $Res call({
    Object? adult = freezed,
    Object? gender = freezed,
    Object? id = freezed,
    Object? known_for_department = freezed,
    Object? name = freezed,
    Object? original_name = freezed,
    Object? popularity = freezed,
    Object? profile_path = freezed,
    Object? cast_id = freezed,
    Object? character = freezed,
    Object? credit_id = freezed,
    Object? order = freezed,
  }) {
    return _then(_value.copyWith(
      adult: adult == freezed
          ? _value.adult
          : adult // ignore: cast_nullable_to_non_nullable
              as bool,
      gender: gender == freezed
          ? _value.gender
          : gender // ignore: cast_nullable_to_non_nullable
              as int,
      id: id == freezed
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as int,
      known_for_department: known_for_department == freezed
          ? _value.known_for_department
          : known_for_department // ignore: cast_nullable_to_non_nullable
              as String,
      name: name == freezed
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
      original_name: original_name == freezed
          ? _value.original_name
          : original_name // ignore: cast_nullable_to_non_nullable
              as String,
      popularity: popularity == freezed
          ? _value.popularity
          : popularity // ignore: cast_nullable_to_non_nullable
              as double,
      profile_path: profile_path == freezed
          ? _value.profile_path
          : profile_path // ignore: cast_nullable_to_non_nullable
              as String?,
      cast_id: cast_id == freezed
          ? _value.cast_id
          : cast_id // ignore: cast_nullable_to_non_nullable
              as int,
      character: character == freezed
          ? _value.character
          : character // ignore: cast_nullable_to_non_nullable
              as String,
      credit_id: credit_id == freezed
          ? _value.credit_id
          : credit_id // ignore: cast_nullable_to_non_nullable
              as String,
      order: order == freezed
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as int,
    ));
  }
}

/// @nodoc
abstract class _$CastsCopyWith<$Res> implements $CastsCopyWith<$Res> {
  factory _$CastsCopyWith(_Casts value, $Res Function(_Casts) then) =
      __$CastsCopyWithImpl<$Res>;
  @override
  $Res call(
      {bool adult,
      int gender,
      int id,
      String known_for_department,
      String name,
      String original_name,
      double popularity,
      String? profile_path,
      int cast_id,
      String character,
      String credit_id,
      int order});
}

/// @nodoc
class __$CastsCopyWithImpl<$Res> extends _$CastsCopyWithImpl<$Res>
    implements _$CastsCopyWith<$Res> {
  __$CastsCopyWithImpl(_Casts _value, $Res Function(_Casts) _then)
      : super(_value, (v) => _then(v as _Casts));

  @override
  _Casts get _value => super._value as _Casts;

  @override
  $Res call({
    Object? adult = freezed,
    Object? gender = freezed,
    Object? id = freezed,
    Object? known_for_department = freezed,
    Object? name = freezed,
    Object? original_name = freezed,
    Object? popularity = freezed,
    Object? profile_path = freezed,
    Object? cast_id = freezed,
    Object? character = freezed,
    Object? credit_id = freezed,
    Object? order = freezed,
  }) {
    return _then(_Casts(
      adult: adult == freezed
          ? _value.adult
          : adult // ignore: cast_nullable_to_non_nullable
              as bool,
      gender: gender == freezed
          ? _value.gender
          : gender // ignore: cast_nullable_to_non_nullable
              as int,
      id: id == freezed
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as int,
      known_for_department: known_for_department == freezed
          ? _value.known_for_department
          : known_for_department // ignore: cast_nullable_to_non_nullable
              as String,
      name: name == freezed
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
      original_name: original_name == freezed
          ? _value.original_name
          : original_name // ignore: cast_nullable_to_non_nullable
              as String,
      popularity: popularity == freezed
          ? _value.popularity
          : popularity // ignore: cast_nullable_to_non_nullable
              as double,
      profile_path: profile_path == freezed
          ? _value.profile_path
          : profile_path // ignore: cast_nullable_to_non_nullable
              as String?,
      cast_id: cast_id == freezed
          ? _value.cast_id
          : cast_id // ignore: cast_nullable_to_non_nullable
              as int,
      character: character == freezed
          ? _value.character
          : character // ignore: cast_nullable_to_non_nullable
              as String,
      credit_id: credit_id == freezed
          ? _value.credit_id
          : credit_id // ignore: cast_nullable_to_non_nullable
              as String,
      order: order == freezed
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as int,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$_Casts implements _Casts {
  _$_Casts(
      {required this.adult,
      required this.gender,
      required this.id,
      required this.known_for_department,
      required this.name,
      required this.original_name,
      required this.popularity,
      this.profile_path,
      required this.cast_id,
      required this.character,
      required this.credit_id,
      required this.order});

  factory _$_Casts.fromJson(Map<String, dynamic> json) =>
      _$$_CastsFromJson(json);

  @override
  final bool adult;
  @override
  final int gender;
  @override
  final int id;
  @override
  final String known_for_department;
  @override
  final String name;
  @override
  final String original_name;
  @override
  final double popularity;
  @override
  final String? profile_path;
  @override
  final int cast_id;
  @override
  final String character;
  @override
  final String credit_id;
  @override
  final int order;

  @override
  String toString() {
    return 'Casts(adult: $adult, gender: $gender, id: $id, known_for_department: $known_for_department, name: $name, original_name: $original_name, popularity: $popularity, profile_path: $profile_path, cast_id: $cast_id, character: $character, credit_id: $credit_id, order: $order)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _Casts &&
            const DeepCollectionEquality().equals(other.adult, adult) &&
            const DeepCollectionEquality().equals(other.gender, gender) &&
            const DeepCollectionEquality().equals(other.id, id) &&
            const DeepCollectionEquality()
                .equals(other.known_for_department, known_for_department) &&
            const DeepCollectionEquality().equals(other.name, name) &&
            const DeepCollectionEquality()
                .equals(other.original_name, original_name) &&
            const DeepCollectionEquality()
                .equals(other.popularity, popularity) &&
            const DeepCollectionEquality()
                .equals(other.profile_path, profile_path) &&
            const DeepCollectionEquality().equals(other.cast_id, cast_id) &&
            const DeepCollectionEquality().equals(other.character, character) &&
            const DeepCollectionEquality().equals(other.credit_id, credit_id) &&
            const DeepCollectionEquality().equals(other.order, order));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      const DeepCollectionEquality().hash(adult),
      const DeepCollectionEquality().hash(gender),
      const DeepCollectionEquality().hash(id),
      const DeepCollectionEquality().hash(known_for_department),
      const DeepCollectionEquality().hash(name),
      const DeepCollectionEquality().hash(original_name),
      const DeepCollectionEquality().hash(popularity),
      const DeepCollectionEquality().hash(profile_path),
      const DeepCollectionEquality().hash(cast_id),
      const DeepCollectionEquality().hash(character),
      const DeepCollectionEquality().hash(credit_id),
      const DeepCollectionEquality().hash(order));

  @JsonKey(ignore: true)
  @override
  _$CastsCopyWith<_Casts> get copyWith =>
      __$CastsCopyWithImpl<_Casts>(this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$_CastsToJson(this);
  }
}

abstract class _Casts implements Casts {
  factory _Casts(
      {required final bool adult,
      required final int gender,
      required final int id,
      required final String known_for_department,
      required final String name,
      required final String original_name,
      required final double popularity,
      final String? profile_path,
      required final int cast_id,
      required final String character,
      required final String credit_id,
      required final int order}) = _$_Casts;

  factory _Casts.fromJson(Map<String, dynamic> json) = _$_Casts.fromJson;

  @override
  bool get adult => throw _privateConstructorUsedError;
  @override
  int get gender => throw _privateConstructorUsedError;
  @override
  int get id => throw _privateConstructorUsedError;
  @override
  String get known_for_department => throw _privateConstructorUsedError;
  @override
  String get name => throw _privateConstructorUsedError;
  @override
  String get original_name => throw _privateConstructorUsedError;
  @override
  double get popularity => throw _privateConstructorUsedError;
  @override
  String? get profile_path => throw _privateConstructorUsedError;
  @override
  int get cast_id => throw _privateConstructorUsedError;
  @override
  String get character => throw _privateConstructorUsedError;
  @override
  String get credit_id => throw _privateConstructorUsedError;
  @override
  int get order => throw _privateConstructorUsedError;
  @override
  @JsonKey(ignore: true)
  _$CastsCopyWith<_Casts> get copyWith => throw _privateConstructorUsedError;
}
