Files
eatvio_app/lib/features/profile/models/profile_model.freezed.dart
2024-08-23 11:45:24 +03:00

1863 lines
69 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 'profile_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');
Profile _$ProfileFromJson(Map<String, dynamic> json) {
return _Profile.fromJson(json);
}
/// @nodoc
mixin _$Profile {
@JsonKey(name: "user")
User get user => throw _privateConstructorUsedError;
@JsonKey(name: "chartPoints")
List<dynamic> get chartPoints => throw _privateConstructorUsedError;
@JsonKey(name: "userDetails")
UserDetails get userDetails => throw _privateConstructorUsedError;
@JsonKey(name: "circumferences")
List<dynamic> get circumferences => throw _privateConstructorUsedError;
@JsonKey(name: "finishedPlans")
List<dynamic> get finishedPlans => throw _privateConstructorUsedError;
@JsonKey(name: "rejectedPlans")
List<dynamic> get rejectedPlans => throw _privateConstructorUsedError;
@JsonKey(name: "startedPlan")
List<dynamic> get startedPlan => throw _privateConstructorUsedError;
@JsonKey(name: "paidPlan")
List<dynamic> get paidPlan => throw _privateConstructorUsedError;
@JsonKey(name: "requestedPlan")
List<dynamic> get requestedPlan => throw _privateConstructorUsedError;
@JsonKey(name: "initedPlan")
List<dynamic> get initedPlan => throw _privateConstructorUsedError;
/// Serializes this Profile to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$ProfileCopyWith<Profile> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ProfileCopyWith<$Res> {
factory $ProfileCopyWith(Profile value, $Res Function(Profile) then) =
_$ProfileCopyWithImpl<$Res, Profile>;
@useResult
$Res call(
{@JsonKey(name: "user") User user,
@JsonKey(name: "chartPoints") List<dynamic> chartPoints,
@JsonKey(name: "userDetails") UserDetails userDetails,
@JsonKey(name: "circumferences") List<dynamic> circumferences,
@JsonKey(name: "finishedPlans") List<dynamic> finishedPlans,
@JsonKey(name: "rejectedPlans") List<dynamic> rejectedPlans,
@JsonKey(name: "startedPlan") List<dynamic> startedPlan,
@JsonKey(name: "paidPlan") List<dynamic> paidPlan,
@JsonKey(name: "requestedPlan") List<dynamic> requestedPlan,
@JsonKey(name: "initedPlan") List<dynamic> initedPlan});
$UserCopyWith<$Res> get user;
$UserDetailsCopyWith<$Res> get userDetails;
}
/// @nodoc
class _$ProfileCopyWithImpl<$Res, $Val extends Profile>
implements $ProfileCopyWith<$Res> {
_$ProfileCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? user = null,
Object? chartPoints = null,
Object? userDetails = null,
Object? circumferences = null,
Object? finishedPlans = null,
Object? rejectedPlans = null,
Object? startedPlan = null,
Object? paidPlan = null,
Object? requestedPlan = null,
Object? initedPlan = null,
}) {
return _then(_value.copyWith(
user: null == user
? _value.user
: user // ignore: cast_nullable_to_non_nullable
as User,
chartPoints: null == chartPoints
? _value.chartPoints
: chartPoints // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
userDetails: null == userDetails
? _value.userDetails
: userDetails // ignore: cast_nullable_to_non_nullable
as UserDetails,
circumferences: null == circumferences
? _value.circumferences
: circumferences // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
finishedPlans: null == finishedPlans
? _value.finishedPlans
: finishedPlans // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
rejectedPlans: null == rejectedPlans
? _value.rejectedPlans
: rejectedPlans // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
startedPlan: null == startedPlan
? _value.startedPlan
: startedPlan // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
paidPlan: null == paidPlan
? _value.paidPlan
: paidPlan // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
requestedPlan: null == requestedPlan
? _value.requestedPlan
: requestedPlan // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
initedPlan: null == initedPlan
? _value.initedPlan
: initedPlan // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
) as $Val);
}
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$UserCopyWith<$Res> get user {
return $UserCopyWith<$Res>(_value.user, (value) {
return _then(_value.copyWith(user: value) as $Val);
});
}
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$UserDetailsCopyWith<$Res> get userDetails {
return $UserDetailsCopyWith<$Res>(_value.userDetails, (value) {
return _then(_value.copyWith(userDetails: value) as $Val);
});
}
}
/// @nodoc
abstract class _$$ProfileImplCopyWith<$Res> implements $ProfileCopyWith<$Res> {
factory _$$ProfileImplCopyWith(
_$ProfileImpl value, $Res Function(_$ProfileImpl) then) =
__$$ProfileImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: "user") User user,
@JsonKey(name: "chartPoints") List<dynamic> chartPoints,
@JsonKey(name: "userDetails") UserDetails userDetails,
@JsonKey(name: "circumferences") List<dynamic> circumferences,
@JsonKey(name: "finishedPlans") List<dynamic> finishedPlans,
@JsonKey(name: "rejectedPlans") List<dynamic> rejectedPlans,
@JsonKey(name: "startedPlan") List<dynamic> startedPlan,
@JsonKey(name: "paidPlan") List<dynamic> paidPlan,
@JsonKey(name: "requestedPlan") List<dynamic> requestedPlan,
@JsonKey(name: "initedPlan") List<dynamic> initedPlan});
@override
$UserCopyWith<$Res> get user;
@override
$UserDetailsCopyWith<$Res> get userDetails;
}
/// @nodoc
class __$$ProfileImplCopyWithImpl<$Res>
extends _$ProfileCopyWithImpl<$Res, _$ProfileImpl>
implements _$$ProfileImplCopyWith<$Res> {
__$$ProfileImplCopyWithImpl(
_$ProfileImpl _value, $Res Function(_$ProfileImpl) _then)
: super(_value, _then);
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? user = null,
Object? chartPoints = null,
Object? userDetails = null,
Object? circumferences = null,
Object? finishedPlans = null,
Object? rejectedPlans = null,
Object? startedPlan = null,
Object? paidPlan = null,
Object? requestedPlan = null,
Object? initedPlan = null,
}) {
return _then(_$ProfileImpl(
user: null == user
? _value.user
: user // ignore: cast_nullable_to_non_nullable
as User,
chartPoints: null == chartPoints
? _value._chartPoints
: chartPoints // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
userDetails: null == userDetails
? _value.userDetails
: userDetails // ignore: cast_nullable_to_non_nullable
as UserDetails,
circumferences: null == circumferences
? _value._circumferences
: circumferences // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
finishedPlans: null == finishedPlans
? _value._finishedPlans
: finishedPlans // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
rejectedPlans: null == rejectedPlans
? _value._rejectedPlans
: rejectedPlans // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
startedPlan: null == startedPlan
? _value._startedPlan
: startedPlan // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
paidPlan: null == paidPlan
? _value._paidPlan
: paidPlan // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
requestedPlan: null == requestedPlan
? _value._requestedPlan
: requestedPlan // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
initedPlan: null == initedPlan
? _value._initedPlan
: initedPlan // ignore: cast_nullable_to_non_nullable
as List<dynamic>,
));
}
}
/// @nodoc
@JsonSerializable()
class _$ProfileImpl implements _Profile {
const _$ProfileImpl(
{@JsonKey(name: "user") required this.user,
@JsonKey(name: "chartPoints") required final List<dynamic> chartPoints,
@JsonKey(name: "userDetails") required this.userDetails,
@JsonKey(name: "circumferences")
required final List<dynamic> circumferences,
@JsonKey(name: "finishedPlans")
required final List<dynamic> finishedPlans,
@JsonKey(name: "rejectedPlans")
required final List<dynamic> rejectedPlans,
@JsonKey(name: "startedPlan") required final List<dynamic> startedPlan,
@JsonKey(name: "paidPlan") required final List<dynamic> paidPlan,
@JsonKey(name: "requestedPlan")
required final List<dynamic> requestedPlan,
@JsonKey(name: "initedPlan") required final List<dynamic> initedPlan})
: _chartPoints = chartPoints,
_circumferences = circumferences,
_finishedPlans = finishedPlans,
_rejectedPlans = rejectedPlans,
_startedPlan = startedPlan,
_paidPlan = paidPlan,
_requestedPlan = requestedPlan,
_initedPlan = initedPlan;
factory _$ProfileImpl.fromJson(Map<String, dynamic> json) =>
_$$ProfileImplFromJson(json);
@override
@JsonKey(name: "user")
final User user;
final List<dynamic> _chartPoints;
@override
@JsonKey(name: "chartPoints")
List<dynamic> get chartPoints {
if (_chartPoints is EqualUnmodifiableListView) return _chartPoints;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_chartPoints);
}
@override
@JsonKey(name: "userDetails")
final UserDetails userDetails;
final List<dynamic> _circumferences;
@override
@JsonKey(name: "circumferences")
List<dynamic> get circumferences {
if (_circumferences is EqualUnmodifiableListView) return _circumferences;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_circumferences);
}
final List<dynamic> _finishedPlans;
@override
@JsonKey(name: "finishedPlans")
List<dynamic> get finishedPlans {
if (_finishedPlans is EqualUnmodifiableListView) return _finishedPlans;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_finishedPlans);
}
final List<dynamic> _rejectedPlans;
@override
@JsonKey(name: "rejectedPlans")
List<dynamic> get rejectedPlans {
if (_rejectedPlans is EqualUnmodifiableListView) return _rejectedPlans;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_rejectedPlans);
}
final List<dynamic> _startedPlan;
@override
@JsonKey(name: "startedPlan")
List<dynamic> get startedPlan {
if (_startedPlan is EqualUnmodifiableListView) return _startedPlan;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_startedPlan);
}
final List<dynamic> _paidPlan;
@override
@JsonKey(name: "paidPlan")
List<dynamic> get paidPlan {
if (_paidPlan is EqualUnmodifiableListView) return _paidPlan;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_paidPlan);
}
final List<dynamic> _requestedPlan;
@override
@JsonKey(name: "requestedPlan")
List<dynamic> get requestedPlan {
if (_requestedPlan is EqualUnmodifiableListView) return _requestedPlan;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_requestedPlan);
}
final List<dynamic> _initedPlan;
@override
@JsonKey(name: "initedPlan")
List<dynamic> get initedPlan {
if (_initedPlan is EqualUnmodifiableListView) return _initedPlan;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_initedPlan);
}
@override
String toString() {
return 'Profile(user: $user, chartPoints: $chartPoints, userDetails: $userDetails, circumferences: $circumferences, finishedPlans: $finishedPlans, rejectedPlans: $rejectedPlans, startedPlan: $startedPlan, paidPlan: $paidPlan, requestedPlan: $requestedPlan, initedPlan: $initedPlan)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ProfileImpl &&
(identical(other.user, user) || other.user == user) &&
const DeepCollectionEquality()
.equals(other._chartPoints, _chartPoints) &&
(identical(other.userDetails, userDetails) ||
other.userDetails == userDetails) &&
const DeepCollectionEquality()
.equals(other._circumferences, _circumferences) &&
const DeepCollectionEquality()
.equals(other._finishedPlans, _finishedPlans) &&
const DeepCollectionEquality()
.equals(other._rejectedPlans, _rejectedPlans) &&
const DeepCollectionEquality()
.equals(other._startedPlan, _startedPlan) &&
const DeepCollectionEquality().equals(other._paidPlan, _paidPlan) &&
const DeepCollectionEquality()
.equals(other._requestedPlan, _requestedPlan) &&
const DeepCollectionEquality()
.equals(other._initedPlan, _initedPlan));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
user,
const DeepCollectionEquality().hash(_chartPoints),
userDetails,
const DeepCollectionEquality().hash(_circumferences),
const DeepCollectionEquality().hash(_finishedPlans),
const DeepCollectionEquality().hash(_rejectedPlans),
const DeepCollectionEquality().hash(_startedPlan),
const DeepCollectionEquality().hash(_paidPlan),
const DeepCollectionEquality().hash(_requestedPlan),
const DeepCollectionEquality().hash(_initedPlan));
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$ProfileImplCopyWith<_$ProfileImpl> get copyWith =>
__$$ProfileImplCopyWithImpl<_$ProfileImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$ProfileImplToJson(
this,
);
}
}
abstract class _Profile implements Profile {
const factory _Profile(
{@JsonKey(name: "user") required final User user,
@JsonKey(name: "chartPoints") required final List<dynamic> chartPoints,
@JsonKey(name: "userDetails") required final UserDetails userDetails,
@JsonKey(name: "circumferences")
required final List<dynamic> circumferences,
@JsonKey(name: "finishedPlans")
required final List<dynamic> finishedPlans,
@JsonKey(name: "rejectedPlans")
required final List<dynamic> rejectedPlans,
@JsonKey(name: "startedPlan") required final List<dynamic> startedPlan,
@JsonKey(name: "paidPlan") required final List<dynamic> paidPlan,
@JsonKey(name: "requestedPlan")
required final List<dynamic> requestedPlan,
@JsonKey(name: "initedPlan")
required final List<dynamic> initedPlan}) = _$ProfileImpl;
factory _Profile.fromJson(Map<String, dynamic> json) = _$ProfileImpl.fromJson;
@override
@JsonKey(name: "user")
User get user;
@override
@JsonKey(name: "chartPoints")
List<dynamic> get chartPoints;
@override
@JsonKey(name: "userDetails")
UserDetails get userDetails;
@override
@JsonKey(name: "circumferences")
List<dynamic> get circumferences;
@override
@JsonKey(name: "finishedPlans")
List<dynamic> get finishedPlans;
@override
@JsonKey(name: "rejectedPlans")
List<dynamic> get rejectedPlans;
@override
@JsonKey(name: "startedPlan")
List<dynamic> get startedPlan;
@override
@JsonKey(name: "paidPlan")
List<dynamic> get paidPlan;
@override
@JsonKey(name: "requestedPlan")
List<dynamic> get requestedPlan;
@override
@JsonKey(name: "initedPlan")
List<dynamic> get initedPlan;
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ProfileImplCopyWith<_$ProfileImpl> get copyWith =>
throw _privateConstructorUsedError;
}
User _$UserFromJson(Map<String, dynamic> json) {
return _User.fromJson(json);
}
/// @nodoc
mixin _$User {
@JsonKey(name: "id")
int get id => throw _privateConstructorUsedError;
@JsonKey(name: "name")
String get name => throw _privateConstructorUsedError;
@JsonKey(name: "email")
String get email => throw _privateConstructorUsedError;
@JsonKey(name: "email_verified_at")
DateTime get emailVerifiedAt => throw _privateConstructorUsedError;
@JsonKey(name: "two_factor_confirmed_at")
dynamic get twoFactorConfirmedAt => throw _privateConstructorUsedError;
@JsonKey(name: "current_team_id")
dynamic get currentTeamId => throw _privateConstructorUsedError;
@JsonKey(name: "profile_photo_path")
String get profilePhotoPath => throw _privateConstructorUsedError;
@JsonKey(name: "created_at")
DateTime get createdAt => throw _privateConstructorUsedError;
@JsonKey(name: "updated_at")
DateTime get updatedAt => throw _privateConstructorUsedError;
@JsonKey(name: "is_consultant")
int get isConsultant => throw _privateConstructorUsedError;
@JsonKey(name: "is_public_profile")
int get isPublicProfile => throw _privateConstructorUsedError;
@JsonKey(name: "slug")
String get slug => throw _privateConstructorUsedError;
@JsonKey(name: "user_settings_id")
dynamic get userSettingsId => throw _privateConstructorUsedError;
@JsonKey(name: "profile_photo_url")
String get profilePhotoUrl => throw _privateConstructorUsedError;
@JsonKey(name: "detailz")
UserDetails get detailz => throw _privateConstructorUsedError;
/// Serializes this User to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of User
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$UserCopyWith<User> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $UserCopyWith<$Res> {
factory $UserCopyWith(User value, $Res Function(User) then) =
_$UserCopyWithImpl<$Res, User>;
@useResult
$Res call(
{@JsonKey(name: "id") int id,
@JsonKey(name: "name") String name,
@JsonKey(name: "email") String email,
@JsonKey(name: "email_verified_at") DateTime emailVerifiedAt,
@JsonKey(name: "two_factor_confirmed_at") dynamic twoFactorConfirmedAt,
@JsonKey(name: "current_team_id") dynamic currentTeamId,
@JsonKey(name: "profile_photo_path") String profilePhotoPath,
@JsonKey(name: "created_at") DateTime createdAt,
@JsonKey(name: "updated_at") DateTime updatedAt,
@JsonKey(name: "is_consultant") int isConsultant,
@JsonKey(name: "is_public_profile") int isPublicProfile,
@JsonKey(name: "slug") String slug,
@JsonKey(name: "user_settings_id") dynamic userSettingsId,
@JsonKey(name: "profile_photo_url") String profilePhotoUrl,
@JsonKey(name: "detailz") UserDetails detailz});
$UserDetailsCopyWith<$Res> get detailz;
}
/// @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? emailVerifiedAt = null,
Object? twoFactorConfirmedAt = freezed,
Object? currentTeamId = freezed,
Object? profilePhotoPath = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? isConsultant = null,
Object? isPublicProfile = null,
Object? slug = null,
Object? userSettingsId = freezed,
Object? profilePhotoUrl = null,
Object? detailz = null,
}) {
return _then(_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
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,
emailVerifiedAt: null == emailVerifiedAt
? _value.emailVerifiedAt
: emailVerifiedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
twoFactorConfirmedAt: freezed == twoFactorConfirmedAt
? _value.twoFactorConfirmedAt
: twoFactorConfirmedAt // ignore: cast_nullable_to_non_nullable
as dynamic,
currentTeamId: freezed == currentTeamId
? _value.currentTeamId
: currentTeamId // ignore: cast_nullable_to_non_nullable
as dynamic,
profilePhotoPath: null == profilePhotoPath
? _value.profilePhotoPath
: profilePhotoPath // 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,
isConsultant: null == isConsultant
? _value.isConsultant
: isConsultant // ignore: cast_nullable_to_non_nullable
as int,
isPublicProfile: null == isPublicProfile
? _value.isPublicProfile
: isPublicProfile // ignore: cast_nullable_to_non_nullable
as int,
slug: null == slug
? _value.slug
: slug // ignore: cast_nullable_to_non_nullable
as String,
userSettingsId: freezed == userSettingsId
? _value.userSettingsId
: userSettingsId // ignore: cast_nullable_to_non_nullable
as dynamic,
profilePhotoUrl: null == profilePhotoUrl
? _value.profilePhotoUrl
: profilePhotoUrl // ignore: cast_nullable_to_non_nullable
as String,
detailz: null == detailz
? _value.detailz
: detailz // ignore: cast_nullable_to_non_nullable
as UserDetails,
) as $Val);
}
/// Create a copy of User
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$UserDetailsCopyWith<$Res> get detailz {
return $UserDetailsCopyWith<$Res>(_value.detailz, (value) {
return _then(_value.copyWith(detailz: value) as $Val);
});
}
}
/// @nodoc
abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> {
factory _$$UserImplCopyWith(
_$UserImpl value, $Res Function(_$UserImpl) then) =
__$$UserImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: "id") int id,
@JsonKey(name: "name") String name,
@JsonKey(name: "email") String email,
@JsonKey(name: "email_verified_at") DateTime emailVerifiedAt,
@JsonKey(name: "two_factor_confirmed_at") dynamic twoFactorConfirmedAt,
@JsonKey(name: "current_team_id") dynamic currentTeamId,
@JsonKey(name: "profile_photo_path") String profilePhotoPath,
@JsonKey(name: "created_at") DateTime createdAt,
@JsonKey(name: "updated_at") DateTime updatedAt,
@JsonKey(name: "is_consultant") int isConsultant,
@JsonKey(name: "is_public_profile") int isPublicProfile,
@JsonKey(name: "slug") String slug,
@JsonKey(name: "user_settings_id") dynamic userSettingsId,
@JsonKey(name: "profile_photo_url") String profilePhotoUrl,
@JsonKey(name: "detailz") UserDetails detailz});
@override
$UserDetailsCopyWith<$Res> get detailz;
}
/// @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? emailVerifiedAt = null,
Object? twoFactorConfirmedAt = freezed,
Object? currentTeamId = freezed,
Object? profilePhotoPath = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? isConsultant = null,
Object? isPublicProfile = null,
Object? slug = null,
Object? userSettingsId = freezed,
Object? profilePhotoUrl = null,
Object? detailz = null,
}) {
return _then(_$UserImpl(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
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,
emailVerifiedAt: null == emailVerifiedAt
? _value.emailVerifiedAt
: emailVerifiedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
twoFactorConfirmedAt: freezed == twoFactorConfirmedAt
? _value.twoFactorConfirmedAt
: twoFactorConfirmedAt // ignore: cast_nullable_to_non_nullable
as dynamic,
currentTeamId: freezed == currentTeamId
? _value.currentTeamId
: currentTeamId // ignore: cast_nullable_to_non_nullable
as dynamic,
profilePhotoPath: null == profilePhotoPath
? _value.profilePhotoPath
: profilePhotoPath // 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,
isConsultant: null == isConsultant
? _value.isConsultant
: isConsultant // ignore: cast_nullable_to_non_nullable
as int,
isPublicProfile: null == isPublicProfile
? _value.isPublicProfile
: isPublicProfile // ignore: cast_nullable_to_non_nullable
as int,
slug: null == slug
? _value.slug
: slug // ignore: cast_nullable_to_non_nullable
as String,
userSettingsId: freezed == userSettingsId
? _value.userSettingsId
: userSettingsId // ignore: cast_nullable_to_non_nullable
as dynamic,
profilePhotoUrl: null == profilePhotoUrl
? _value.profilePhotoUrl
: profilePhotoUrl // ignore: cast_nullable_to_non_nullable
as String,
detailz: null == detailz
? _value.detailz
: detailz // ignore: cast_nullable_to_non_nullable
as UserDetails,
));
}
}
/// @nodoc
@JsonSerializable()
class _$UserImpl implements _User {
const _$UserImpl(
{@JsonKey(name: "id") required this.id,
@JsonKey(name: "name") required this.name,
@JsonKey(name: "email") required this.email,
@JsonKey(name: "email_verified_at") required this.emailVerifiedAt,
@JsonKey(name: "two_factor_confirmed_at")
required this.twoFactorConfirmedAt,
@JsonKey(name: "current_team_id") required this.currentTeamId,
@JsonKey(name: "profile_photo_path") required this.profilePhotoPath,
@JsonKey(name: "created_at") required this.createdAt,
@JsonKey(name: "updated_at") required this.updatedAt,
@JsonKey(name: "is_consultant") required this.isConsultant,
@JsonKey(name: "is_public_profile") required this.isPublicProfile,
@JsonKey(name: "slug") required this.slug,
@JsonKey(name: "user_settings_id") required this.userSettingsId,
@JsonKey(name: "profile_photo_url") required this.profilePhotoUrl,
@JsonKey(name: "detailz") required this.detailz});
factory _$UserImpl.fromJson(Map<String, dynamic> json) =>
_$$UserImplFromJson(json);
@override
@JsonKey(name: "id")
final int id;
@override
@JsonKey(name: "name")
final String name;
@override
@JsonKey(name: "email")
final String email;
@override
@JsonKey(name: "email_verified_at")
final DateTime emailVerifiedAt;
@override
@JsonKey(name: "two_factor_confirmed_at")
final dynamic twoFactorConfirmedAt;
@override
@JsonKey(name: "current_team_id")
final dynamic currentTeamId;
@override
@JsonKey(name: "profile_photo_path")
final String profilePhotoPath;
@override
@JsonKey(name: "created_at")
final DateTime createdAt;
@override
@JsonKey(name: "updated_at")
final DateTime updatedAt;
@override
@JsonKey(name: "is_consultant")
final int isConsultant;
@override
@JsonKey(name: "is_public_profile")
final int isPublicProfile;
@override
@JsonKey(name: "slug")
final String slug;
@override
@JsonKey(name: "user_settings_id")
final dynamic userSettingsId;
@override
@JsonKey(name: "profile_photo_url")
final String profilePhotoUrl;
@override
@JsonKey(name: "detailz")
final UserDetails detailz;
@override
String toString() {
return 'User(id: $id, name: $name, email: $email, emailVerifiedAt: $emailVerifiedAt, twoFactorConfirmedAt: $twoFactorConfirmedAt, currentTeamId: $currentTeamId, profilePhotoPath: $profilePhotoPath, createdAt: $createdAt, updatedAt: $updatedAt, isConsultant: $isConsultant, isPublicProfile: $isPublicProfile, slug: $slug, userSettingsId: $userSettingsId, profilePhotoUrl: $profilePhotoUrl, detailz: $detailz)';
}
@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.emailVerifiedAt, emailVerifiedAt) ||
other.emailVerifiedAt == emailVerifiedAt) &&
const DeepCollectionEquality()
.equals(other.twoFactorConfirmedAt, twoFactorConfirmedAt) &&
const DeepCollectionEquality()
.equals(other.currentTeamId, currentTeamId) &&
(identical(other.profilePhotoPath, profilePhotoPath) ||
other.profilePhotoPath == profilePhotoPath) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.isConsultant, isConsultant) ||
other.isConsultant == isConsultant) &&
(identical(other.isPublicProfile, isPublicProfile) ||
other.isPublicProfile == isPublicProfile) &&
(identical(other.slug, slug) || other.slug == slug) &&
const DeepCollectionEquality()
.equals(other.userSettingsId, userSettingsId) &&
(identical(other.profilePhotoUrl, profilePhotoUrl) ||
other.profilePhotoUrl == profilePhotoUrl) &&
(identical(other.detailz, detailz) || other.detailz == detailz));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
id,
name,
email,
emailVerifiedAt,
const DeepCollectionEquality().hash(twoFactorConfirmedAt),
const DeepCollectionEquality().hash(currentTeamId),
profilePhotoPath,
createdAt,
updatedAt,
isConsultant,
isPublicProfile,
slug,
const DeepCollectionEquality().hash(userSettingsId),
profilePhotoUrl,
detailz);
/// 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);
@override
Map<String, dynamic> toJson() {
return _$$UserImplToJson(
this,
);
}
}
abstract class _User implements User {
const factory _User(
{@JsonKey(name: "id") required final int id,
@JsonKey(name: "name") required final String name,
@JsonKey(name: "email") required final String email,
@JsonKey(name: "email_verified_at")
required final DateTime emailVerifiedAt,
@JsonKey(name: "two_factor_confirmed_at")
required final dynamic twoFactorConfirmedAt,
@JsonKey(name: "current_team_id") required final dynamic currentTeamId,
@JsonKey(name: "profile_photo_path")
required final String profilePhotoPath,
@JsonKey(name: "created_at") required final DateTime createdAt,
@JsonKey(name: "updated_at") required final DateTime updatedAt,
@JsonKey(name: "is_consultant") required final int isConsultant,
@JsonKey(name: "is_public_profile") required final int isPublicProfile,
@JsonKey(name: "slug") required final String slug,
@JsonKey(name: "user_settings_id") required final dynamic userSettingsId,
@JsonKey(name: "profile_photo_url") required final String profilePhotoUrl,
@JsonKey(name: "detailz")
required final UserDetails detailz}) = _$UserImpl;
factory _User.fromJson(Map<String, dynamic> json) = _$UserImpl.fromJson;
@override
@JsonKey(name: "id")
int get id;
@override
@JsonKey(name: "name")
String get name;
@override
@JsonKey(name: "email")
String get email;
@override
@JsonKey(name: "email_verified_at")
DateTime get emailVerifiedAt;
@override
@JsonKey(name: "two_factor_confirmed_at")
dynamic get twoFactorConfirmedAt;
@override
@JsonKey(name: "current_team_id")
dynamic get currentTeamId;
@override
@JsonKey(name: "profile_photo_path")
String get profilePhotoPath;
@override
@JsonKey(name: "created_at")
DateTime get createdAt;
@override
@JsonKey(name: "updated_at")
DateTime get updatedAt;
@override
@JsonKey(name: "is_consultant")
int get isConsultant;
@override
@JsonKey(name: "is_public_profile")
int get isPublicProfile;
@override
@JsonKey(name: "slug")
String get slug;
@override
@JsonKey(name: "user_settings_id")
dynamic get userSettingsId;
@override
@JsonKey(name: "profile_photo_url")
String get profilePhotoUrl;
@override
@JsonKey(name: "detailz")
UserDetails get detailz;
/// 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;
}
UserDetails _$UserDetailsFromJson(Map<String, dynamic> json) {
return _UserDetails.fromJson(json);
}
/// @nodoc
mixin _$UserDetails {
@JsonKey(name: "id")
int get id => throw _privateConstructorUsedError;
@JsonKey(name: "user_id")
int get userId => throw _privateConstructorUsedError;
@JsonKey(name: "first_name")
String get firstName => throw _privateConstructorUsedError;
@JsonKey(name: "last_name")
String get lastName => throw _privateConstructorUsedError;
@JsonKey(name: "birthdate")
DateTime get birthdate => throw _privateConstructorUsedError;
@JsonKey(name: "gender")
String get gender => throw _privateConstructorUsedError;
@JsonKey(name: "country")
String get country => throw _privateConstructorUsedError;
@JsonKey(name: "city")
String get city => throw _privateConstructorUsedError;
@JsonKey(name: "lang")
String get lang => throw _privateConstructorUsedError;
@JsonKey(name: "weight")
int get weight => throw _privateConstructorUsedError;
@JsonKey(name: "height")
int get height => throw _privateConstructorUsedError;
@JsonKey(name: "chest_circumference")
int get chestCircumference => throw _privateConstructorUsedError;
@JsonKey(name: "waist_circumference")
int get waistCircumference => throw _privateConstructorUsedError;
@JsonKey(name: "hip_circumference")
int get hipCircumference => throw _privateConstructorUsedError;
@JsonKey(name: "blood_pressure_up")
int get bloodPressureUp => throw _privateConstructorUsedError;
@JsonKey(name: "blood_pressure_down")
int get bloodPressureDown => throw _privateConstructorUsedError;
@JsonKey(name: "has_hypo")
int get hasHypo => throw _privateConstructorUsedError;
@JsonKey(name: "has_hyper")
int get hasHyper => throw _privateConstructorUsedError;
@JsonKey(name: "about_alergy")
String get aboutAlergy => throw _privateConstructorUsedError;
@JsonKey(name: "about_taking_pils")
String get aboutTakingPils => throw _privateConstructorUsedError;
@JsonKey(name: "about_sport_hobbies")
String get aboutSportHobbies => throw _privateConstructorUsedError;
@JsonKey(name: "favorite_foods")
String get favoriteFoods => throw _privateConstructorUsedError;
@JsonKey(name: "unfavorite_foods")
String get unfavoriteFoods => throw _privateConstructorUsedError;
@JsonKey(name: "additional_info")
String get additionalInfo => throw _privateConstructorUsedError;
@JsonKey(name: "created_at")
DateTime get createdAt => throw _privateConstructorUsedError;
@JsonKey(name: "updated_at")
DateTime get updatedAt => throw _privateConstructorUsedError;
@JsonKey(name: "is_mood_fillable")
int get isMoodFillable => throw _privateConstructorUsedError;
@JsonKey(name: "is_bedtime_fillable")
int get isBedtimeFillable => throw _privateConstructorUsedError;
@JsonKey(name: "activity_coefficient")
double get activityCoefficient => throw _privateConstructorUsedError;
/// Serializes this UserDetails to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of UserDetails
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$UserDetailsCopyWith<UserDetails> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $UserDetailsCopyWith<$Res> {
factory $UserDetailsCopyWith(
UserDetails value, $Res Function(UserDetails) then) =
_$UserDetailsCopyWithImpl<$Res, UserDetails>;
@useResult
$Res call(
{@JsonKey(name: "id") int id,
@JsonKey(name: "user_id") int userId,
@JsonKey(name: "first_name") String firstName,
@JsonKey(name: "last_name") String lastName,
@JsonKey(name: "birthdate") DateTime birthdate,
@JsonKey(name: "gender") String gender,
@JsonKey(name: "country") String country,
@JsonKey(name: "city") String city,
@JsonKey(name: "lang") String lang,
@JsonKey(name: "weight") int weight,
@JsonKey(name: "height") int height,
@JsonKey(name: "chest_circumference") int chestCircumference,
@JsonKey(name: "waist_circumference") int waistCircumference,
@JsonKey(name: "hip_circumference") int hipCircumference,
@JsonKey(name: "blood_pressure_up") int bloodPressureUp,
@JsonKey(name: "blood_pressure_down") int bloodPressureDown,
@JsonKey(name: "has_hypo") int hasHypo,
@JsonKey(name: "has_hyper") int hasHyper,
@JsonKey(name: "about_alergy") String aboutAlergy,
@JsonKey(name: "about_taking_pils") String aboutTakingPils,
@JsonKey(name: "about_sport_hobbies") String aboutSportHobbies,
@JsonKey(name: "favorite_foods") String favoriteFoods,
@JsonKey(name: "unfavorite_foods") String unfavoriteFoods,
@JsonKey(name: "additional_info") String additionalInfo,
@JsonKey(name: "created_at") DateTime createdAt,
@JsonKey(name: "updated_at") DateTime updatedAt,
@JsonKey(name: "is_mood_fillable") int isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") int isBedtimeFillable,
@JsonKey(name: "activity_coefficient") double activityCoefficient});
}
/// @nodoc
class _$UserDetailsCopyWithImpl<$Res, $Val extends UserDetails>
implements $UserDetailsCopyWith<$Res> {
_$UserDetailsCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of UserDetails
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? userId = null,
Object? firstName = null,
Object? lastName = null,
Object? birthdate = null,
Object? gender = null,
Object? country = null,
Object? city = null,
Object? lang = null,
Object? weight = null,
Object? height = null,
Object? chestCircumference = null,
Object? waistCircumference = null,
Object? hipCircumference = null,
Object? bloodPressureUp = null,
Object? bloodPressureDown = null,
Object? hasHypo = null,
Object? hasHyper = null,
Object? aboutAlergy = null,
Object? aboutTakingPils = null,
Object? aboutSportHobbies = null,
Object? favoriteFoods = null,
Object? unfavoriteFoods = null,
Object? additionalInfo = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? isMoodFillable = null,
Object? isBedtimeFillable = null,
Object? activityCoefficient = null,
}) {
return _then(_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
userId: null == userId
? _value.userId
: userId // ignore: cast_nullable_to_non_nullable
as int,
firstName: null == firstName
? _value.firstName
: firstName // ignore: cast_nullable_to_non_nullable
as String,
lastName: null == lastName
? _value.lastName
: lastName // ignore: cast_nullable_to_non_nullable
as String,
birthdate: null == birthdate
? _value.birthdate
: birthdate // ignore: cast_nullable_to_non_nullable
as DateTime,
gender: null == gender
? _value.gender
: gender // ignore: cast_nullable_to_non_nullable
as String,
country: null == country
? _value.country
: country // ignore: cast_nullable_to_non_nullable
as String,
city: null == city
? _value.city
: city // ignore: cast_nullable_to_non_nullable
as String,
lang: null == lang
? _value.lang
: lang // ignore: cast_nullable_to_non_nullable
as String,
weight: null == weight
? _value.weight
: weight // ignore: cast_nullable_to_non_nullable
as int,
height: null == height
? _value.height
: height // ignore: cast_nullable_to_non_nullable
as int,
chestCircumference: null == chestCircumference
? _value.chestCircumference
: chestCircumference // ignore: cast_nullable_to_non_nullable
as int,
waistCircumference: null == waistCircumference
? _value.waistCircumference
: waistCircumference // ignore: cast_nullable_to_non_nullable
as int,
hipCircumference: null == hipCircumference
? _value.hipCircumference
: hipCircumference // ignore: cast_nullable_to_non_nullable
as int,
bloodPressureUp: null == bloodPressureUp
? _value.bloodPressureUp
: bloodPressureUp // ignore: cast_nullable_to_non_nullable
as int,
bloodPressureDown: null == bloodPressureDown
? _value.bloodPressureDown
: bloodPressureDown // ignore: cast_nullable_to_non_nullable
as int,
hasHypo: null == hasHypo
? _value.hasHypo
: hasHypo // ignore: cast_nullable_to_non_nullable
as int,
hasHyper: null == hasHyper
? _value.hasHyper
: hasHyper // ignore: cast_nullable_to_non_nullable
as int,
aboutAlergy: null == aboutAlergy
? _value.aboutAlergy
: aboutAlergy // ignore: cast_nullable_to_non_nullable
as String,
aboutTakingPils: null == aboutTakingPils
? _value.aboutTakingPils
: aboutTakingPils // ignore: cast_nullable_to_non_nullable
as String,
aboutSportHobbies: null == aboutSportHobbies
? _value.aboutSportHobbies
: aboutSportHobbies // ignore: cast_nullable_to_non_nullable
as String,
favoriteFoods: null == favoriteFoods
? _value.favoriteFoods
: favoriteFoods // ignore: cast_nullable_to_non_nullable
as String,
unfavoriteFoods: null == unfavoriteFoods
? _value.unfavoriteFoods
: unfavoriteFoods // ignore: cast_nullable_to_non_nullable
as String,
additionalInfo: null == additionalInfo
? _value.additionalInfo
: additionalInfo // 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,
isMoodFillable: null == isMoodFillable
? _value.isMoodFillable
: isMoodFillable // ignore: cast_nullable_to_non_nullable
as int,
isBedtimeFillable: null == isBedtimeFillable
? _value.isBedtimeFillable
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
as int,
activityCoefficient: null == activityCoefficient
? _value.activityCoefficient
: activityCoefficient // ignore: cast_nullable_to_non_nullable
as double,
) as $Val);
}
}
/// @nodoc
abstract class _$$UserDetailsImplCopyWith<$Res>
implements $UserDetailsCopyWith<$Res> {
factory _$$UserDetailsImplCopyWith(
_$UserDetailsImpl value, $Res Function(_$UserDetailsImpl) then) =
__$$UserDetailsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: "id") int id,
@JsonKey(name: "user_id") int userId,
@JsonKey(name: "first_name") String firstName,
@JsonKey(name: "last_name") String lastName,
@JsonKey(name: "birthdate") DateTime birthdate,
@JsonKey(name: "gender") String gender,
@JsonKey(name: "country") String country,
@JsonKey(name: "city") String city,
@JsonKey(name: "lang") String lang,
@JsonKey(name: "weight") int weight,
@JsonKey(name: "height") int height,
@JsonKey(name: "chest_circumference") int chestCircumference,
@JsonKey(name: "waist_circumference") int waistCircumference,
@JsonKey(name: "hip_circumference") int hipCircumference,
@JsonKey(name: "blood_pressure_up") int bloodPressureUp,
@JsonKey(name: "blood_pressure_down") int bloodPressureDown,
@JsonKey(name: "has_hypo") int hasHypo,
@JsonKey(name: "has_hyper") int hasHyper,
@JsonKey(name: "about_alergy") String aboutAlergy,
@JsonKey(name: "about_taking_pils") String aboutTakingPils,
@JsonKey(name: "about_sport_hobbies") String aboutSportHobbies,
@JsonKey(name: "favorite_foods") String favoriteFoods,
@JsonKey(name: "unfavorite_foods") String unfavoriteFoods,
@JsonKey(name: "additional_info") String additionalInfo,
@JsonKey(name: "created_at") DateTime createdAt,
@JsonKey(name: "updated_at") DateTime updatedAt,
@JsonKey(name: "is_mood_fillable") int isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") int isBedtimeFillable,
@JsonKey(name: "activity_coefficient") double activityCoefficient});
}
/// @nodoc
class __$$UserDetailsImplCopyWithImpl<$Res>
extends _$UserDetailsCopyWithImpl<$Res, _$UserDetailsImpl>
implements _$$UserDetailsImplCopyWith<$Res> {
__$$UserDetailsImplCopyWithImpl(
_$UserDetailsImpl _value, $Res Function(_$UserDetailsImpl) _then)
: super(_value, _then);
/// Create a copy of UserDetails
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? userId = null,
Object? firstName = null,
Object? lastName = null,
Object? birthdate = null,
Object? gender = null,
Object? country = null,
Object? city = null,
Object? lang = null,
Object? weight = null,
Object? height = null,
Object? chestCircumference = null,
Object? waistCircumference = null,
Object? hipCircumference = null,
Object? bloodPressureUp = null,
Object? bloodPressureDown = null,
Object? hasHypo = null,
Object? hasHyper = null,
Object? aboutAlergy = null,
Object? aboutTakingPils = null,
Object? aboutSportHobbies = null,
Object? favoriteFoods = null,
Object? unfavoriteFoods = null,
Object? additionalInfo = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? isMoodFillable = null,
Object? isBedtimeFillable = null,
Object? activityCoefficient = null,
}) {
return _then(_$UserDetailsImpl(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
userId: null == userId
? _value.userId
: userId // ignore: cast_nullable_to_non_nullable
as int,
firstName: null == firstName
? _value.firstName
: firstName // ignore: cast_nullable_to_non_nullable
as String,
lastName: null == lastName
? _value.lastName
: lastName // ignore: cast_nullable_to_non_nullable
as String,
birthdate: null == birthdate
? _value.birthdate
: birthdate // ignore: cast_nullable_to_non_nullable
as DateTime,
gender: null == gender
? _value.gender
: gender // ignore: cast_nullable_to_non_nullable
as String,
country: null == country
? _value.country
: country // ignore: cast_nullable_to_non_nullable
as String,
city: null == city
? _value.city
: city // ignore: cast_nullable_to_non_nullable
as String,
lang: null == lang
? _value.lang
: lang // ignore: cast_nullable_to_non_nullable
as String,
weight: null == weight
? _value.weight
: weight // ignore: cast_nullable_to_non_nullable
as int,
height: null == height
? _value.height
: height // ignore: cast_nullable_to_non_nullable
as int,
chestCircumference: null == chestCircumference
? _value.chestCircumference
: chestCircumference // ignore: cast_nullable_to_non_nullable
as int,
waistCircumference: null == waistCircumference
? _value.waistCircumference
: waistCircumference // ignore: cast_nullable_to_non_nullable
as int,
hipCircumference: null == hipCircumference
? _value.hipCircumference
: hipCircumference // ignore: cast_nullable_to_non_nullable
as int,
bloodPressureUp: null == bloodPressureUp
? _value.bloodPressureUp
: bloodPressureUp // ignore: cast_nullable_to_non_nullable
as int,
bloodPressureDown: null == bloodPressureDown
? _value.bloodPressureDown
: bloodPressureDown // ignore: cast_nullable_to_non_nullable
as int,
hasHypo: null == hasHypo
? _value.hasHypo
: hasHypo // ignore: cast_nullable_to_non_nullable
as int,
hasHyper: null == hasHyper
? _value.hasHyper
: hasHyper // ignore: cast_nullable_to_non_nullable
as int,
aboutAlergy: null == aboutAlergy
? _value.aboutAlergy
: aboutAlergy // ignore: cast_nullable_to_non_nullable
as String,
aboutTakingPils: null == aboutTakingPils
? _value.aboutTakingPils
: aboutTakingPils // ignore: cast_nullable_to_non_nullable
as String,
aboutSportHobbies: null == aboutSportHobbies
? _value.aboutSportHobbies
: aboutSportHobbies // ignore: cast_nullable_to_non_nullable
as String,
favoriteFoods: null == favoriteFoods
? _value.favoriteFoods
: favoriteFoods // ignore: cast_nullable_to_non_nullable
as String,
unfavoriteFoods: null == unfavoriteFoods
? _value.unfavoriteFoods
: unfavoriteFoods // ignore: cast_nullable_to_non_nullable
as String,
additionalInfo: null == additionalInfo
? _value.additionalInfo
: additionalInfo // 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,
isMoodFillable: null == isMoodFillable
? _value.isMoodFillable
: isMoodFillable // ignore: cast_nullable_to_non_nullable
as int,
isBedtimeFillable: null == isBedtimeFillable
? _value.isBedtimeFillable
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
as int,
activityCoefficient: null == activityCoefficient
? _value.activityCoefficient
: activityCoefficient // ignore: cast_nullable_to_non_nullable
as double,
));
}
}
/// @nodoc
@JsonSerializable()
class _$UserDetailsImpl implements _UserDetails {
const _$UserDetailsImpl(
{@JsonKey(name: "id") required this.id,
@JsonKey(name: "user_id") required this.userId,
@JsonKey(name: "first_name") required this.firstName,
@JsonKey(name: "last_name") required this.lastName,
@JsonKey(name: "birthdate") required this.birthdate,
@JsonKey(name: "gender") required this.gender,
@JsonKey(name: "country") required this.country,
@JsonKey(name: "city") required this.city,
@JsonKey(name: "lang") required this.lang,
@JsonKey(name: "weight") required this.weight,
@JsonKey(name: "height") required this.height,
@JsonKey(name: "chest_circumference") required this.chestCircumference,
@JsonKey(name: "waist_circumference") required this.waistCircumference,
@JsonKey(name: "hip_circumference") required this.hipCircumference,
@JsonKey(name: "blood_pressure_up") required this.bloodPressureUp,
@JsonKey(name: "blood_pressure_down") required this.bloodPressureDown,
@JsonKey(name: "has_hypo") required this.hasHypo,
@JsonKey(name: "has_hyper") required this.hasHyper,
@JsonKey(name: "about_alergy") required this.aboutAlergy,
@JsonKey(name: "about_taking_pils") required this.aboutTakingPils,
@JsonKey(name: "about_sport_hobbies") required this.aboutSportHobbies,
@JsonKey(name: "favorite_foods") required this.favoriteFoods,
@JsonKey(name: "unfavorite_foods") required this.unfavoriteFoods,
@JsonKey(name: "additional_info") required this.additionalInfo,
@JsonKey(name: "created_at") required this.createdAt,
@JsonKey(name: "updated_at") required this.updatedAt,
@JsonKey(name: "is_mood_fillable") required this.isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") required this.isBedtimeFillable,
@JsonKey(name: "activity_coefficient")
required this.activityCoefficient});
factory _$UserDetailsImpl.fromJson(Map<String, dynamic> json) =>
_$$UserDetailsImplFromJson(json);
@override
@JsonKey(name: "id")
final int id;
@override
@JsonKey(name: "user_id")
final int userId;
@override
@JsonKey(name: "first_name")
final String firstName;
@override
@JsonKey(name: "last_name")
final String lastName;
@override
@JsonKey(name: "birthdate")
final DateTime birthdate;
@override
@JsonKey(name: "gender")
final String gender;
@override
@JsonKey(name: "country")
final String country;
@override
@JsonKey(name: "city")
final String city;
@override
@JsonKey(name: "lang")
final String lang;
@override
@JsonKey(name: "weight")
final int weight;
@override
@JsonKey(name: "height")
final int height;
@override
@JsonKey(name: "chest_circumference")
final int chestCircumference;
@override
@JsonKey(name: "waist_circumference")
final int waistCircumference;
@override
@JsonKey(name: "hip_circumference")
final int hipCircumference;
@override
@JsonKey(name: "blood_pressure_up")
final int bloodPressureUp;
@override
@JsonKey(name: "blood_pressure_down")
final int bloodPressureDown;
@override
@JsonKey(name: "has_hypo")
final int hasHypo;
@override
@JsonKey(name: "has_hyper")
final int hasHyper;
@override
@JsonKey(name: "about_alergy")
final String aboutAlergy;
@override
@JsonKey(name: "about_taking_pils")
final String aboutTakingPils;
@override
@JsonKey(name: "about_sport_hobbies")
final String aboutSportHobbies;
@override
@JsonKey(name: "favorite_foods")
final String favoriteFoods;
@override
@JsonKey(name: "unfavorite_foods")
final String unfavoriteFoods;
@override
@JsonKey(name: "additional_info")
final String additionalInfo;
@override
@JsonKey(name: "created_at")
final DateTime createdAt;
@override
@JsonKey(name: "updated_at")
final DateTime updatedAt;
@override
@JsonKey(name: "is_mood_fillable")
final int isMoodFillable;
@override
@JsonKey(name: "is_bedtime_fillable")
final int isBedtimeFillable;
@override
@JsonKey(name: "activity_coefficient")
final double activityCoefficient;
@override
String toString() {
return 'UserDetails(id: $id, userId: $userId, firstName: $firstName, lastName: $lastName, birthdate: $birthdate, gender: $gender, country: $country, city: $city, lang: $lang, weight: $weight, height: $height, chestCircumference: $chestCircumference, waistCircumference: $waistCircumference, hipCircumference: $hipCircumference, bloodPressureUp: $bloodPressureUp, bloodPressureDown: $bloodPressureDown, hasHypo: $hasHypo, hasHyper: $hasHyper, aboutAlergy: $aboutAlergy, aboutTakingPils: $aboutTakingPils, aboutSportHobbies: $aboutSportHobbies, favoriteFoods: $favoriteFoods, unfavoriteFoods: $unfavoriteFoods, additionalInfo: $additionalInfo, createdAt: $createdAt, updatedAt: $updatedAt, isMoodFillable: $isMoodFillable, isBedtimeFillable: $isBedtimeFillable, activityCoefficient: $activityCoefficient)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$UserDetailsImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.userId, userId) || other.userId == userId) &&
(identical(other.firstName, firstName) ||
other.firstName == firstName) &&
(identical(other.lastName, lastName) ||
other.lastName == lastName) &&
(identical(other.birthdate, birthdate) ||
other.birthdate == birthdate) &&
(identical(other.gender, gender) || other.gender == gender) &&
(identical(other.country, country) || other.country == country) &&
(identical(other.city, city) || other.city == city) &&
(identical(other.lang, lang) || other.lang == lang) &&
(identical(other.weight, weight) || other.weight == weight) &&
(identical(other.height, height) || other.height == height) &&
(identical(other.chestCircumference, chestCircumference) ||
other.chestCircumference == chestCircumference) &&
(identical(other.waistCircumference, waistCircumference) ||
other.waistCircumference == waistCircumference) &&
(identical(other.hipCircumference, hipCircumference) ||
other.hipCircumference == hipCircumference) &&
(identical(other.bloodPressureUp, bloodPressureUp) ||
other.bloodPressureUp == bloodPressureUp) &&
(identical(other.bloodPressureDown, bloodPressureDown) ||
other.bloodPressureDown == bloodPressureDown) &&
(identical(other.hasHypo, hasHypo) || other.hasHypo == hasHypo) &&
(identical(other.hasHyper, hasHyper) ||
other.hasHyper == hasHyper) &&
(identical(other.aboutAlergy, aboutAlergy) ||
other.aboutAlergy == aboutAlergy) &&
(identical(other.aboutTakingPils, aboutTakingPils) ||
other.aboutTakingPils == aboutTakingPils) &&
(identical(other.aboutSportHobbies, aboutSportHobbies) ||
other.aboutSportHobbies == aboutSportHobbies) &&
(identical(other.favoriteFoods, favoriteFoods) ||
other.favoriteFoods == favoriteFoods) &&
(identical(other.unfavoriteFoods, unfavoriteFoods) ||
other.unfavoriteFoods == unfavoriteFoods) &&
(identical(other.additionalInfo, additionalInfo) ||
other.additionalInfo == additionalInfo) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.isMoodFillable, isMoodFillable) ||
other.isMoodFillable == isMoodFillable) &&
(identical(other.isBedtimeFillable, isBedtimeFillable) ||
other.isBedtimeFillable == isBedtimeFillable) &&
(identical(other.activityCoefficient, activityCoefficient) ||
other.activityCoefficient == activityCoefficient));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([
runtimeType,
id,
userId,
firstName,
lastName,
birthdate,
gender,
country,
city,
lang,
weight,
height,
chestCircumference,
waistCircumference,
hipCircumference,
bloodPressureUp,
bloodPressureDown,
hasHypo,
hasHyper,
aboutAlergy,
aboutTakingPils,
aboutSportHobbies,
favoriteFoods,
unfavoriteFoods,
additionalInfo,
createdAt,
updatedAt,
isMoodFillable,
isBedtimeFillable,
activityCoefficient
]);
/// Create a copy of UserDetails
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$UserDetailsImplCopyWith<_$UserDetailsImpl> get copyWith =>
__$$UserDetailsImplCopyWithImpl<_$UserDetailsImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$UserDetailsImplToJson(
this,
);
}
}
abstract class _UserDetails implements UserDetails {
const factory _UserDetails(
{@JsonKey(name: "id") required final int id,
@JsonKey(name: "user_id") required final int userId,
@JsonKey(name: "first_name") required final String firstName,
@JsonKey(name: "last_name") required final String lastName,
@JsonKey(name: "birthdate") required final DateTime birthdate,
@JsonKey(name: "gender") required final String gender,
@JsonKey(name: "country") required final String country,
@JsonKey(name: "city") required final String city,
@JsonKey(name: "lang") required final String lang,
@JsonKey(name: "weight") required final int weight,
@JsonKey(name: "height") required final int height,
@JsonKey(name: "chest_circumference")
required final int chestCircumference,
@JsonKey(name: "waist_circumference")
required final int waistCircumference,
@JsonKey(name: "hip_circumference") required final int hipCircumference,
@JsonKey(name: "blood_pressure_up") required final int bloodPressureUp,
@JsonKey(name: "blood_pressure_down")
required final int bloodPressureDown,
@JsonKey(name: "has_hypo") required final int hasHypo,
@JsonKey(name: "has_hyper") required final int hasHyper,
@JsonKey(name: "about_alergy") required final String aboutAlergy,
@JsonKey(name: "about_taking_pils") required final String aboutTakingPils,
@JsonKey(name: "about_sport_hobbies")
required final String aboutSportHobbies,
@JsonKey(name: "favorite_foods") required final String favoriteFoods,
@JsonKey(name: "unfavorite_foods") required final String unfavoriteFoods,
@JsonKey(name: "additional_info") required final String additionalInfo,
@JsonKey(name: "created_at") required final DateTime createdAt,
@JsonKey(name: "updated_at") required final DateTime updatedAt,
@JsonKey(name: "is_mood_fillable") required final int isMoodFillable,
@JsonKey(name: "is_bedtime_fillable")
required final int isBedtimeFillable,
@JsonKey(name: "activity_coefficient")
required final double activityCoefficient}) = _$UserDetailsImpl;
factory _UserDetails.fromJson(Map<String, dynamic> json) =
_$UserDetailsImpl.fromJson;
@override
@JsonKey(name: "id")
int get id;
@override
@JsonKey(name: "user_id")
int get userId;
@override
@JsonKey(name: "first_name")
String get firstName;
@override
@JsonKey(name: "last_name")
String get lastName;
@override
@JsonKey(name: "birthdate")
DateTime get birthdate;
@override
@JsonKey(name: "gender")
String get gender;
@override
@JsonKey(name: "country")
String get country;
@override
@JsonKey(name: "city")
String get city;
@override
@JsonKey(name: "lang")
String get lang;
@override
@JsonKey(name: "weight")
int get weight;
@override
@JsonKey(name: "height")
int get height;
@override
@JsonKey(name: "chest_circumference")
int get chestCircumference;
@override
@JsonKey(name: "waist_circumference")
int get waistCircumference;
@override
@JsonKey(name: "hip_circumference")
int get hipCircumference;
@override
@JsonKey(name: "blood_pressure_up")
int get bloodPressureUp;
@override
@JsonKey(name: "blood_pressure_down")
int get bloodPressureDown;
@override
@JsonKey(name: "has_hypo")
int get hasHypo;
@override
@JsonKey(name: "has_hyper")
int get hasHyper;
@override
@JsonKey(name: "about_alergy")
String get aboutAlergy;
@override
@JsonKey(name: "about_taking_pils")
String get aboutTakingPils;
@override
@JsonKey(name: "about_sport_hobbies")
String get aboutSportHobbies;
@override
@JsonKey(name: "favorite_foods")
String get favoriteFoods;
@override
@JsonKey(name: "unfavorite_foods")
String get unfavoriteFoods;
@override
@JsonKey(name: "additional_info")
String get additionalInfo;
@override
@JsonKey(name: "created_at")
DateTime get createdAt;
@override
@JsonKey(name: "updated_at")
DateTime get updatedAt;
@override
@JsonKey(name: "is_mood_fillable")
int get isMoodFillable;
@override
@JsonKey(name: "is_bedtime_fillable")
int get isBedtimeFillable;
@override
@JsonKey(name: "activity_coefficient")
double get activityCoefficient;
/// Create a copy of UserDetails
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$UserDetailsImplCopyWith<_$UserDetailsImpl> get copyWith =>
throw _privateConstructorUsedError;
}