// 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 'list_photo_model.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');

ListPhotoModel _$ListPhotoModelFromJson(Map<String, dynamic> json) {
  return _ListPhotoModel.fromJson(json);
}

/// @nodoc
mixin _$ListPhotoModel {
  List<PhotoModel> get photos => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $ListPhotoModelCopyWith<$Res> {
  factory $ListPhotoModelCopyWith(
          ListPhotoModel value, $Res Function(ListPhotoModel) then) =
      _$ListPhotoModelCopyWithImpl<$Res, ListPhotoModel>;
  @useResult
  $Res call({List<PhotoModel> photos});
}

/// @nodoc
class _$ListPhotoModelCopyWithImpl<$Res, $Val extends ListPhotoModel>
    implements $ListPhotoModelCopyWith<$Res> {
  _$ListPhotoModelCopyWithImpl(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? photos = null,
  }) {
    return _then(_value.copyWith(
      photos: null == photos
          ? _value.photos
          : photos // ignore: cast_nullable_to_non_nullable
              as List<PhotoModel>,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$_ListPhotoModelCopyWith<$Res>
    implements $ListPhotoModelCopyWith<$Res> {
  factory _$$_ListPhotoModelCopyWith(
          _$_ListPhotoModel value, $Res Function(_$_ListPhotoModel) then) =
      __$$_ListPhotoModelCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({List<PhotoModel> photos});
}

/// @nodoc
class __$$_ListPhotoModelCopyWithImpl<$Res>
    extends _$ListPhotoModelCopyWithImpl<$Res, _$_ListPhotoModel>
    implements _$$_ListPhotoModelCopyWith<$Res> {
  __$$_ListPhotoModelCopyWithImpl(
      _$_ListPhotoModel _value, $Res Function(_$_ListPhotoModel) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? photos = null,
  }) {
    return _then(_$_ListPhotoModel(
      photos: null == photos
          ? _value._photos
          : photos // ignore: cast_nullable_to_non_nullable
              as List<PhotoModel>,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$_ListPhotoModel implements _ListPhotoModel {
  const _$_ListPhotoModel({required final List<PhotoModel> photos})
      : _photos = photos;

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

  final List<PhotoModel> _photos;
  @override
  List<PhotoModel> get photos {
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_photos);
  }

  @override
  String toString() {
    return 'ListPhotoModel(photos: $photos)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_ListPhotoModel &&
            const DeepCollectionEquality().equals(other._photos, _photos));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode =>
      Object.hash(runtimeType, const DeepCollectionEquality().hash(_photos));

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_ListPhotoModelCopyWith<_$_ListPhotoModel> get copyWith =>
      __$$_ListPhotoModelCopyWithImpl<_$_ListPhotoModel>(this, _$identity);

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

abstract class _ListPhotoModel implements ListPhotoModel {
  const factory _ListPhotoModel({required final List<PhotoModel> photos}) =
      _$_ListPhotoModel;

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

  @override
  List<PhotoModel> get photos;
  @override
  @JsonKey(ignore: true)
  _$$_ListPhotoModelCopyWith<_$_ListPhotoModel> get copyWith =>
      throw _privateConstructorUsedError;
}
