// 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 'user.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 _$User { String get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; String get email => throw _privateConstructorUsedError; String? get passwordHash => throw _privateConstructorUsedError; DateTime get createdAt => throw _privateConstructorUsedError; DateTime get updatedAt => throw _privateConstructorUsedError; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $UserCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UserCopyWith<$Res> { factory $UserCopyWith(User value, $Res Function(User) then) = _$UserCopyWithImpl<$Res, User>; @useResult $Res call( {String id, String name, String email, String? passwordHash, DateTime createdAt, DateTime updatedAt}); } /// @nodoc class _$UserCopyWithImpl<$Res, $Val extends User> implements $UserCopyWith<$Res> { _$UserCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = null, Object? email = null, Object? passwordHash = freezed, Object? createdAt = null, Object? updatedAt = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable as String, passwordHash: freezed == passwordHash ? _value.passwordHash : passwordHash // ignore: cast_nullable_to_non_nullable as String?, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, updatedAt: null == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime, ) as $Val); } } /// @nodoc abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> { factory _$$UserImplCopyWith( _$UserImpl value, $Res Function(_$UserImpl) then) = __$$UserImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, String name, String email, String? passwordHash, DateTime createdAt, DateTime updatedAt}); } /// @nodoc class __$$UserImplCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$UserImpl> implements _$$UserImplCopyWith<$Res> { __$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then) : super(_value, _then); /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = null, Object? email = null, Object? passwordHash = freezed, Object? createdAt = null, Object? updatedAt = null, }) { return _then(_$UserImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable as String, passwordHash: freezed == passwordHash ? _value.passwordHash : passwordHash // ignore: cast_nullable_to_non_nullable as String?, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, updatedAt: null == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime, )); } } /// @nodoc class _$UserImpl implements _User { const _$UserImpl( {required this.id, required this.name, required this.email, this.passwordHash, required this.createdAt, required this.updatedAt}); @override final String id; @override final String name; @override final String email; @override final String? passwordHash; @override final DateTime createdAt; @override final DateTime updatedAt; @override String toString() { return 'User(id: $id, name: $name, email: $email, passwordHash: $passwordHash, createdAt: $createdAt, updatedAt: $updatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UserImpl && (identical(other.id, id) || other.id == id) && (identical(other.name, name) || other.name == name) && (identical(other.email, email) || other.email == email) && (identical(other.passwordHash, passwordHash) || other.passwordHash == passwordHash) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)); } @override int get hashCode => Object.hash( runtimeType, id, name, email, passwordHash, createdAt, updatedAt); /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UserImplCopyWith<_$UserImpl> get copyWith => __$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity); } abstract class _User implements User { const factory _User( {required final String id, required final String name, required final String email, final String? passwordHash, required final DateTime createdAt, required final DateTime updatedAt}) = _$UserImpl; @override String get id; @override String get name; @override String get email; @override String? get passwordHash; @override DateTime get createdAt; @override DateTime get updatedAt; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$UserImplCopyWith<_$UserImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$UserCreate { String? get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; String get email => throw _privateConstructorUsedError; String get password => throw _privateConstructorUsedError; /// Create a copy of UserCreate /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $UserCreateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UserCreateCopyWith<$Res> { factory $UserCreateCopyWith( UserCreate value, $Res Function(UserCreate) then) = _$UserCreateCopyWithImpl<$Res, UserCreate>; @useResult $Res call({String? id, String name, String email, String password}); } /// @nodoc class _$UserCreateCopyWithImpl<$Res, $Val extends UserCreate> implements $UserCreateCopyWith<$Res> { _$UserCreateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of UserCreate /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = freezed, Object? name = null, Object? email = null, Object? password = null, }) { return _then(_value.copyWith( id: freezed == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String?, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable as String, password: null == password ? _value.password : password // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$UserCreateImplCopyWith<$Res> implements $UserCreateCopyWith<$Res> { factory _$$UserCreateImplCopyWith( _$UserCreateImpl value, $Res Function(_$UserCreateImpl) then) = __$$UserCreateImplCopyWithImpl<$Res>; @override @useResult $Res call({String? id, String name, String email, String password}); } /// @nodoc class __$$UserCreateImplCopyWithImpl<$Res> extends _$UserCreateCopyWithImpl<$Res, _$UserCreateImpl> implements _$$UserCreateImplCopyWith<$Res> { __$$UserCreateImplCopyWithImpl( _$UserCreateImpl _value, $Res Function(_$UserCreateImpl) _then) : super(_value, _then); /// Create a copy of UserCreate /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = freezed, Object? name = null, Object? email = null, Object? password = null, }) { return _then(_$UserCreateImpl( id: freezed == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String?, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable as String, password: null == password ? _value.password : password // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc class _$UserCreateImpl implements _UserCreate { const _$UserCreateImpl( {this.id, required this.name, required this.email, required this.password}); @override final String? id; @override final String name; @override final String email; @override final String password; @override String toString() { return 'UserCreate(id: $id, name: $name, email: $email, password: $password)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UserCreateImpl && (identical(other.id, id) || other.id == id) && (identical(other.name, name) || other.name == name) && (identical(other.email, email) || other.email == email) && (identical(other.password, password) || other.password == password)); } @override int get hashCode => Object.hash(runtimeType, id, name, email, password); /// Create a copy of UserCreate /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UserCreateImplCopyWith<_$UserCreateImpl> get copyWith => __$$UserCreateImplCopyWithImpl<_$UserCreateImpl>(this, _$identity); } abstract class _UserCreate implements UserCreate { const factory _UserCreate( {final String? id, required final String name, required final String email, required final String password}) = _$UserCreateImpl; @override String? get id; @override String get name; @override String get email; @override String get password; /// Create a copy of UserCreate /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$UserCreateImplCopyWith<_$UserCreateImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$UserUpdate { String get id => throw _privateConstructorUsedError; String? get name => throw _privateConstructorUsedError; String? get email => throw _privateConstructorUsedError; String? get password => throw _privateConstructorUsedError; /// Create a copy of UserUpdate /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $UserUpdateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UserUpdateCopyWith<$Res> { factory $UserUpdateCopyWith( UserUpdate value, $Res Function(UserUpdate) then) = _$UserUpdateCopyWithImpl<$Res, UserUpdate>; @useResult $Res call({String id, String? name, String? email, String? password}); } /// @nodoc class _$UserUpdateCopyWithImpl<$Res, $Val extends UserUpdate> implements $UserUpdateCopyWith<$Res> { _$UserUpdateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of UserUpdate /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = freezed, Object? email = freezed, Object? password = freezed, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, email: freezed == email ? _value.email : email // ignore: cast_nullable_to_non_nullable as String?, password: freezed == password ? _value.password : password // ignore: cast_nullable_to_non_nullable as String?, ) as $Val); } } /// @nodoc abstract class _$$UserUpdateImplCopyWith<$Res> implements $UserUpdateCopyWith<$Res> { factory _$$UserUpdateImplCopyWith( _$UserUpdateImpl value, $Res Function(_$UserUpdateImpl) then) = __$$UserUpdateImplCopyWithImpl<$Res>; @override @useResult $Res call({String id, String? name, String? email, String? password}); } /// @nodoc class __$$UserUpdateImplCopyWithImpl<$Res> extends _$UserUpdateCopyWithImpl<$Res, _$UserUpdateImpl> implements _$$UserUpdateImplCopyWith<$Res> { __$$UserUpdateImplCopyWithImpl( _$UserUpdateImpl _value, $Res Function(_$UserUpdateImpl) _then) : super(_value, _then); /// Create a copy of UserUpdate /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = freezed, Object? email = freezed, Object? password = freezed, }) { return _then(_$UserUpdateImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, email: freezed == email ? _value.email : email // ignore: cast_nullable_to_non_nullable as String?, password: freezed == password ? _value.password : password // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc class _$UserUpdateImpl implements _UserUpdate { const _$UserUpdateImpl( {required this.id, this.name, this.email, this.password}); @override final String id; @override final String? name; @override final String? email; @override final String? password; @override String toString() { return 'UserUpdate(id: $id, name: $name, email: $email, password: $password)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UserUpdateImpl && (identical(other.id, id) || other.id == id) && (identical(other.name, name) || other.name == name) && (identical(other.email, email) || other.email == email) && (identical(other.password, password) || other.password == password)); } @override int get hashCode => Object.hash(runtimeType, id, name, email, password); /// Create a copy of UserUpdate /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UserUpdateImplCopyWith<_$UserUpdateImpl> get copyWith => __$$UserUpdateImplCopyWithImpl<_$UserUpdateImpl>(this, _$identity); } abstract class _UserUpdate implements UserUpdate { const factory _UserUpdate( {required final String id, final String? name, final String? email, final String? password}) = _$UserUpdateImpl; @override String get id; @override String? get name; @override String? get email; @override String? get password; /// Create a copy of UserUpdate /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$UserUpdateImplCopyWith<_$UserUpdateImpl> get copyWith => throw _privateConstructorUsedError; }