Files
eatvio_app/lib/features/notifications/models/notification_model.freezed.dart
2025-04-24 04:20:24 +07:00

167 lines
5.5 KiB
Dart

// 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 'notification_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#adding-getters-and-methods-to-our-models');
NotificationModel _$NotificationModelFromJson(Map<String, dynamic> json) {
return _NotificationModel.fromJson(json);
}
/// @nodoc
mixin _$NotificationModel {
NotificationType get type => throw _privateConstructorUsedError;
/// Serializes this NotificationModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of NotificationModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$NotificationModelCopyWith<NotificationModel> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $NotificationModelCopyWith<$Res> {
factory $NotificationModelCopyWith(
NotificationModel value, $Res Function(NotificationModel) then) =
_$NotificationModelCopyWithImpl<$Res, NotificationModel>;
@useResult
$Res call({NotificationType type});
}
/// @nodoc
class _$NotificationModelCopyWithImpl<$Res, $Val extends NotificationModel>
implements $NotificationModelCopyWith<$Res> {
_$NotificationModelCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of NotificationModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? type = null,
}) {
return _then(_value.copyWith(
type: null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
as NotificationType,
) as $Val);
}
}
/// @nodoc
abstract class _$$NotificationModelImplCopyWith<$Res>
implements $NotificationModelCopyWith<$Res> {
factory _$$NotificationModelImplCopyWith(_$NotificationModelImpl value,
$Res Function(_$NotificationModelImpl) then) =
__$$NotificationModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({NotificationType type});
}
/// @nodoc
class __$$NotificationModelImplCopyWithImpl<$Res>
extends _$NotificationModelCopyWithImpl<$Res, _$NotificationModelImpl>
implements _$$NotificationModelImplCopyWith<$Res> {
__$$NotificationModelImplCopyWithImpl(_$NotificationModelImpl _value,
$Res Function(_$NotificationModelImpl) _then)
: super(_value, _then);
/// Create a copy of NotificationModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? type = null,
}) {
return _then(_$NotificationModelImpl(
type: null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
as NotificationType,
));
}
}
/// @nodoc
@JsonSerializable()
class _$NotificationModelImpl implements _NotificationModel {
_$NotificationModelImpl({required this.type});
factory _$NotificationModelImpl.fromJson(Map<String, dynamic> json) =>
_$$NotificationModelImplFromJson(json);
@override
final NotificationType type;
@override
String toString() {
return 'NotificationModel(type: $type)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$NotificationModelImpl &&
(identical(other.type, type) || other.type == type));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, type);
/// Create a copy of NotificationModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$NotificationModelImplCopyWith<_$NotificationModelImpl> get copyWith =>
__$$NotificationModelImplCopyWithImpl<_$NotificationModelImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$NotificationModelImplToJson(
this,
);
}
}
abstract class _NotificationModel implements NotificationModel {
factory _NotificationModel({required final NotificationType type}) =
_$NotificationModelImpl;
factory _NotificationModel.fromJson(Map<String, dynamic> json) =
_$NotificationModelImpl.fromJson;
@override
NotificationType get type;
/// Create a copy of NotificationModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$NotificationModelImplCopyWith<_$NotificationModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}