// dart format width=80 // 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 'registration.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$Registration { String get email; String get username; /// Create a copy of Registration /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $RegistrationCopyWith get copyWith => _$RegistrationCopyWithImpl(this as Registration, _$identity); /// Serializes this Registration to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is Registration&&(identical(other.email, email) || other.email == email)&&(identical(other.username, username) || other.username == username)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,email,username); @override String toString() { return 'Registration(email: $email, username: $username)'; } } /// @nodoc abstract mixin class $RegistrationCopyWith<$Res> { factory $RegistrationCopyWith(Registration value, $Res Function(Registration) _then) = _$RegistrationCopyWithImpl; @useResult $Res call({ String email, String username }); } /// @nodoc class _$RegistrationCopyWithImpl<$Res> implements $RegistrationCopyWith<$Res> { _$RegistrationCopyWithImpl(this._self, this._then); final Registration _self; final $Res Function(Registration) _then; /// Create a copy of Registration /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? email = null,Object? username = null,}) { return _then(_self.copyWith( email: null == email ? _self.email : email // ignore: cast_nullable_to_non_nullable as String,username: null == username ? _self.username : username // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _Registration implements Registration { const _Registration({required this.email, required this.username}); factory _Registration.fromJson(Map json) => _$RegistrationFromJson(json); @override final String email; @override final String username; /// Create a copy of Registration /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$RegistrationCopyWith<_Registration> get copyWith => __$RegistrationCopyWithImpl<_Registration>(this, _$identity); @override Map toJson() { return _$RegistrationToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _Registration&&(identical(other.email, email) || other.email == email)&&(identical(other.username, username) || other.username == username)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,email,username); @override String toString() { return 'Registration(email: $email, username: $username)'; } } /// @nodoc abstract mixin class _$RegistrationCopyWith<$Res> implements $RegistrationCopyWith<$Res> { factory _$RegistrationCopyWith(_Registration value, $Res Function(_Registration) _then) = __$RegistrationCopyWithImpl; @override @useResult $Res call({ String email, String username }); } /// @nodoc class __$RegistrationCopyWithImpl<$Res> implements _$RegistrationCopyWith<$Res> { __$RegistrationCopyWithImpl(this._self, this._then); final _Registration _self; final $Res Function(_Registration) _then; /// Create a copy of Registration /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? email = null,Object? username = null,}) { return _then(_Registration( email: null == email ? _self.email : email // ignore: cast_nullable_to_non_nullable as String,username: null == username ? _self.username : username // ignore: cast_nullable_to_non_nullable as String, )); } } // dart format on