// 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 'collection_dto.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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#adding-getters-and-methods-to-our-models', ); /// @nodoc mixin _$CollectionDto { String get desc => throw _privateConstructorUsedError; String get title => throw _privateConstructorUsedError; bool get isPublic => throw _privateConstructorUsedError; Uint8List? get avatar => throw _privateConstructorUsedError; /// Create a copy of CollectionDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CollectionDtoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CollectionDtoCopyWith<$Res> { factory $CollectionDtoCopyWith( CollectionDto value, $Res Function(CollectionDto) then, ) = _$CollectionDtoCopyWithImpl<$Res, CollectionDto>; @useResult $Res call({String desc, String title, bool isPublic, Uint8List? avatar}); } /// @nodoc class _$CollectionDtoCopyWithImpl<$Res, $Val extends CollectionDto> implements $CollectionDtoCopyWith<$Res> { _$CollectionDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CollectionDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? desc = null, Object? title = null, Object? isPublic = null, Object? avatar = freezed, }) { return _then( _value.copyWith( desc: null == desc ? _value.desc : desc // ignore: cast_nullable_to_non_nullable as String, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, isPublic: null == isPublic ? _value.isPublic : isPublic // ignore: cast_nullable_to_non_nullable as bool, avatar: freezed == avatar ? _value.avatar : avatar // ignore: cast_nullable_to_non_nullable as Uint8List?, ) as $Val, ); } } /// @nodoc abstract class _$$CollectionDtoImplCopyWith<$Res> implements $CollectionDtoCopyWith<$Res> { factory _$$CollectionDtoImplCopyWith( _$CollectionDtoImpl value, $Res Function(_$CollectionDtoImpl) then, ) = __$$CollectionDtoImplCopyWithImpl<$Res>; @override @useResult $Res call({String desc, String title, bool isPublic, Uint8List? avatar}); } /// @nodoc class __$$CollectionDtoImplCopyWithImpl<$Res> extends _$CollectionDtoCopyWithImpl<$Res, _$CollectionDtoImpl> implements _$$CollectionDtoImplCopyWith<$Res> { __$$CollectionDtoImplCopyWithImpl( _$CollectionDtoImpl _value, $Res Function(_$CollectionDtoImpl) _then, ) : super(_value, _then); /// Create a copy of CollectionDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? desc = null, Object? title = null, Object? isPublic = null, Object? avatar = freezed, }) { return _then( _$CollectionDtoImpl( desc: null == desc ? _value.desc : desc // ignore: cast_nullable_to_non_nullable as String, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, isPublic: null == isPublic ? _value.isPublic : isPublic // ignore: cast_nullable_to_non_nullable as bool, avatar: freezed == avatar ? _value.avatar : avatar // ignore: cast_nullable_to_non_nullable as Uint8List?, ), ); } } /// @nodoc class _$CollectionDtoImpl implements _CollectionDto { const _$CollectionDtoImpl({ required this.desc, required this.title, required this.isPublic, this.avatar, }); @override final String desc; @override final String title; @override final bool isPublic; @override final Uint8List? avatar; @override String toString() { return 'CollectionDto(desc: $desc, title: $title, isPublic: $isPublic, avatar: $avatar)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CollectionDtoImpl && (identical(other.desc, desc) || other.desc == desc) && (identical(other.title, title) || other.title == title) && (identical(other.isPublic, isPublic) || other.isPublic == isPublic) && const DeepCollectionEquality().equals(other.avatar, avatar)); } @override int get hashCode => Object.hash( runtimeType, desc, title, isPublic, const DeepCollectionEquality().hash(avatar), ); /// Create a copy of CollectionDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CollectionDtoImplCopyWith<_$CollectionDtoImpl> get copyWith => __$$CollectionDtoImplCopyWithImpl<_$CollectionDtoImpl>(this, _$identity); } abstract class _CollectionDto implements CollectionDto { const factory _CollectionDto({ required final String desc, required final String title, required final bool isPublic, final Uint8List? avatar, }) = _$CollectionDtoImpl; @override String get desc; @override String get title; @override bool get isPublic; @override Uint8List? get avatar; /// Create a copy of CollectionDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CollectionDtoImplCopyWith<_$CollectionDtoImpl> get copyWith => throw _privateConstructorUsedError; }