forked from eatvio/eatvio_app
1840 lines
68 KiB
Dart
1840 lines
68 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');
|
|
|
|
ProfileModel _$ProfileModelFromJson(Map<String, dynamic> json) {
|
|
return _ProfileModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ProfileModel {
|
|
@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: "created_at")
|
|
DateTime? get createdAt => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "updated_at")
|
|
DateTime? get updatedAt => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "is_public_profile")
|
|
bool get isPublicProfile => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'is_entity_subscribed_by_me')
|
|
bool get isEntitySubscribedByMe => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "slug")
|
|
String get slug => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "profile_photo_url")
|
|
String get profilePhotoUrl => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "role")
|
|
String get role => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "badges")
|
|
List<BadgeModel> get badges => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "subscriptions")
|
|
List<ProfilePreviewModel> get subscriptions =>
|
|
throw _privateConstructorUsedError;
|
|
@JsonKey(name: "subscribers")
|
|
List<ProfilePreviewModel> get subscribers =>
|
|
throw _privateConstructorUsedError;
|
|
@JsonKey(name: "education_resource")
|
|
EducationResource? get educationResource =>
|
|
throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ProfileModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ProfileModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ProfileModelCopyWith<ProfileModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ProfileModelCopyWith<$Res> {
|
|
factory $ProfileModelCopyWith(
|
|
ProfileModel value, $Res Function(ProfileModel) then) =
|
|
_$ProfileModelCopyWithImpl<$Res, ProfileModel>;
|
|
@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: "created_at") DateTime? createdAt,
|
|
@JsonKey(name: "updated_at") DateTime? updatedAt,
|
|
@JsonKey(name: "is_public_profile") bool isPublicProfile,
|
|
@JsonKey(name: 'is_entity_subscribed_by_me') bool isEntitySubscribedByMe,
|
|
@JsonKey(name: "slug") String slug,
|
|
@JsonKey(name: "profile_photo_url") String profilePhotoUrl,
|
|
@JsonKey(name: "role") String role,
|
|
@JsonKey(name: "badges") List<BadgeModel> badges,
|
|
@JsonKey(name: "subscriptions") List<ProfilePreviewModel> subscriptions,
|
|
@JsonKey(name: "subscribers") List<ProfilePreviewModel> subscribers,
|
|
@JsonKey(name: "education_resource")
|
|
EducationResource? educationResource});
|
|
|
|
$EducationResourceCopyWith<$Res>? get educationResource;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ProfileModelCopyWithImpl<$Res, $Val extends ProfileModel>
|
|
implements $ProfileModelCopyWith<$Res> {
|
|
_$ProfileModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ProfileModel
|
|
/// 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 = freezed,
|
|
Object? createdAt = freezed,
|
|
Object? updatedAt = freezed,
|
|
Object? isPublicProfile = null,
|
|
Object? isEntitySubscribedByMe = null,
|
|
Object? slug = null,
|
|
Object? profilePhotoUrl = null,
|
|
Object? role = null,
|
|
Object? badges = null,
|
|
Object? subscriptions = null,
|
|
Object? subscribers = null,
|
|
Object? educationResource = freezed,
|
|
}) {
|
|
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: freezed == emailVerifiedAt
|
|
? _value.emailVerifiedAt
|
|
: emailVerifiedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
createdAt: freezed == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
updatedAt: freezed == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
isPublicProfile: null == isPublicProfile
|
|
? _value.isPublicProfile
|
|
: isPublicProfile // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isEntitySubscribedByMe: null == isEntitySubscribedByMe
|
|
? _value.isEntitySubscribedByMe
|
|
: isEntitySubscribedByMe // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
slug: null == slug
|
|
? _value.slug
|
|
: slug // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
profilePhotoUrl: null == profilePhotoUrl
|
|
? _value.profilePhotoUrl
|
|
: profilePhotoUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
role: null == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
badges: null == badges
|
|
? _value.badges
|
|
: badges // ignore: cast_nullable_to_non_nullable
|
|
as List<BadgeModel>,
|
|
subscriptions: null == subscriptions
|
|
? _value.subscriptions
|
|
: subscriptions // ignore: cast_nullable_to_non_nullable
|
|
as List<ProfilePreviewModel>,
|
|
subscribers: null == subscribers
|
|
? _value.subscribers
|
|
: subscribers // ignore: cast_nullable_to_non_nullable
|
|
as List<ProfilePreviewModel>,
|
|
educationResource: freezed == educationResource
|
|
? _value.educationResource
|
|
: educationResource // ignore: cast_nullable_to_non_nullable
|
|
as EducationResource?,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of ProfileModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$EducationResourceCopyWith<$Res>? get educationResource {
|
|
if (_value.educationResource == null) {
|
|
return null;
|
|
}
|
|
|
|
return $EducationResourceCopyWith<$Res>(_value.educationResource!, (value) {
|
|
return _then(_value.copyWith(educationResource: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ProfileModelImplCopyWith<$Res>
|
|
implements $ProfileModelCopyWith<$Res> {
|
|
factory _$$ProfileModelImplCopyWith(
|
|
_$ProfileModelImpl value, $Res Function(_$ProfileModelImpl) then) =
|
|
__$$ProfileModelImplCopyWithImpl<$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: "created_at") DateTime? createdAt,
|
|
@JsonKey(name: "updated_at") DateTime? updatedAt,
|
|
@JsonKey(name: "is_public_profile") bool isPublicProfile,
|
|
@JsonKey(name: 'is_entity_subscribed_by_me') bool isEntitySubscribedByMe,
|
|
@JsonKey(name: "slug") String slug,
|
|
@JsonKey(name: "profile_photo_url") String profilePhotoUrl,
|
|
@JsonKey(name: "role") String role,
|
|
@JsonKey(name: "badges") List<BadgeModel> badges,
|
|
@JsonKey(name: "subscriptions") List<ProfilePreviewModel> subscriptions,
|
|
@JsonKey(name: "subscribers") List<ProfilePreviewModel> subscribers,
|
|
@JsonKey(name: "education_resource")
|
|
EducationResource? educationResource});
|
|
|
|
@override
|
|
$EducationResourceCopyWith<$Res>? get educationResource;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ProfileModelImplCopyWithImpl<$Res>
|
|
extends _$ProfileModelCopyWithImpl<$Res, _$ProfileModelImpl>
|
|
implements _$$ProfileModelImplCopyWith<$Res> {
|
|
__$$ProfileModelImplCopyWithImpl(
|
|
_$ProfileModelImpl _value, $Res Function(_$ProfileModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ProfileModel
|
|
/// 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 = freezed,
|
|
Object? createdAt = freezed,
|
|
Object? updatedAt = freezed,
|
|
Object? isPublicProfile = null,
|
|
Object? isEntitySubscribedByMe = null,
|
|
Object? slug = null,
|
|
Object? profilePhotoUrl = null,
|
|
Object? role = null,
|
|
Object? badges = null,
|
|
Object? subscriptions = null,
|
|
Object? subscribers = null,
|
|
Object? educationResource = freezed,
|
|
}) {
|
|
return _then(_$ProfileModelImpl(
|
|
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: freezed == emailVerifiedAt
|
|
? _value.emailVerifiedAt
|
|
: emailVerifiedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
createdAt: freezed == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
updatedAt: freezed == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
isPublicProfile: null == isPublicProfile
|
|
? _value.isPublicProfile
|
|
: isPublicProfile // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isEntitySubscribedByMe: null == isEntitySubscribedByMe
|
|
? _value.isEntitySubscribedByMe
|
|
: isEntitySubscribedByMe // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
slug: null == slug
|
|
? _value.slug
|
|
: slug // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
profilePhotoUrl: null == profilePhotoUrl
|
|
? _value.profilePhotoUrl
|
|
: profilePhotoUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
role: null == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
badges: null == badges
|
|
? _value._badges
|
|
: badges // ignore: cast_nullable_to_non_nullable
|
|
as List<BadgeModel>,
|
|
subscriptions: null == subscriptions
|
|
? _value._subscriptions
|
|
: subscriptions // ignore: cast_nullable_to_non_nullable
|
|
as List<ProfilePreviewModel>,
|
|
subscribers: null == subscribers
|
|
? _value._subscribers
|
|
: subscribers // ignore: cast_nullable_to_non_nullable
|
|
as List<ProfilePreviewModel>,
|
|
educationResource: freezed == educationResource
|
|
? _value.educationResource
|
|
: educationResource // ignore: cast_nullable_to_non_nullable
|
|
as EducationResource?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ProfileModelImpl implements _ProfileModel {
|
|
const _$ProfileModelImpl(
|
|
{@JsonKey(name: "id") required this.id,
|
|
@JsonKey(name: "name") required this.name,
|
|
@JsonKey(name: "email") required this.email,
|
|
@JsonKey(name: "email_verified_at") this.emailVerifiedAt,
|
|
@JsonKey(name: "created_at") this.createdAt,
|
|
@JsonKey(name: "updated_at") this.updatedAt,
|
|
@JsonKey(name: "is_public_profile") required this.isPublicProfile,
|
|
@JsonKey(name: 'is_entity_subscribed_by_me')
|
|
required this.isEntitySubscribedByMe,
|
|
@JsonKey(name: "slug") required this.slug,
|
|
@JsonKey(name: "profile_photo_url") required this.profilePhotoUrl,
|
|
@JsonKey(name: "role") required this.role,
|
|
@JsonKey(name: "badges") required final List<BadgeModel> badges,
|
|
@JsonKey(name: "subscriptions")
|
|
required final List<ProfilePreviewModel> subscriptions,
|
|
@JsonKey(name: "subscribers")
|
|
required final List<ProfilePreviewModel> subscribers,
|
|
@JsonKey(name: "education_resource") this.educationResource})
|
|
: _badges = badges,
|
|
_subscriptions = subscriptions,
|
|
_subscribers = subscribers;
|
|
|
|
factory _$ProfileModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ProfileModelImplFromJson(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: "created_at")
|
|
final DateTime? createdAt;
|
|
@override
|
|
@JsonKey(name: "updated_at")
|
|
final DateTime? updatedAt;
|
|
@override
|
|
@JsonKey(name: "is_public_profile")
|
|
final bool isPublicProfile;
|
|
@override
|
|
@JsonKey(name: 'is_entity_subscribed_by_me')
|
|
final bool isEntitySubscribedByMe;
|
|
@override
|
|
@JsonKey(name: "slug")
|
|
final String slug;
|
|
@override
|
|
@JsonKey(name: "profile_photo_url")
|
|
final String profilePhotoUrl;
|
|
@override
|
|
@JsonKey(name: "role")
|
|
final String role;
|
|
final List<BadgeModel> _badges;
|
|
@override
|
|
@JsonKey(name: "badges")
|
|
List<BadgeModel> get badges {
|
|
if (_badges is EqualUnmodifiableListView) return _badges;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_badges);
|
|
}
|
|
|
|
final List<ProfilePreviewModel> _subscriptions;
|
|
@override
|
|
@JsonKey(name: "subscriptions")
|
|
List<ProfilePreviewModel> get subscriptions {
|
|
if (_subscriptions is EqualUnmodifiableListView) return _subscriptions;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_subscriptions);
|
|
}
|
|
|
|
final List<ProfilePreviewModel> _subscribers;
|
|
@override
|
|
@JsonKey(name: "subscribers")
|
|
List<ProfilePreviewModel> get subscribers {
|
|
if (_subscribers is EqualUnmodifiableListView) return _subscribers;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_subscribers);
|
|
}
|
|
|
|
@override
|
|
@JsonKey(name: "education_resource")
|
|
final EducationResource? educationResource;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ProfileModel(id: $id, name: $name, email: $email, emailVerifiedAt: $emailVerifiedAt, createdAt: $createdAt, updatedAt: $updatedAt, isPublicProfile: $isPublicProfile, isEntitySubscribedByMe: $isEntitySubscribedByMe, slug: $slug, profilePhotoUrl: $profilePhotoUrl, role: $role, badges: $badges, subscriptions: $subscriptions, subscribers: $subscribers, educationResource: $educationResource)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ProfileModelImpl &&
|
|
(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) &&
|
|
(identical(other.createdAt, createdAt) ||
|
|
other.createdAt == createdAt) &&
|
|
(identical(other.updatedAt, updatedAt) ||
|
|
other.updatedAt == updatedAt) &&
|
|
(identical(other.isPublicProfile, isPublicProfile) ||
|
|
other.isPublicProfile == isPublicProfile) &&
|
|
(identical(other.isEntitySubscribedByMe, isEntitySubscribedByMe) ||
|
|
other.isEntitySubscribedByMe == isEntitySubscribedByMe) &&
|
|
(identical(other.slug, slug) || other.slug == slug) &&
|
|
(identical(other.profilePhotoUrl, profilePhotoUrl) ||
|
|
other.profilePhotoUrl == profilePhotoUrl) &&
|
|
(identical(other.role, role) || other.role == role) &&
|
|
const DeepCollectionEquality().equals(other._badges, _badges) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._subscriptions, _subscriptions) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._subscribers, _subscribers) &&
|
|
(identical(other.educationResource, educationResource) ||
|
|
other.educationResource == educationResource));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
email,
|
|
emailVerifiedAt,
|
|
createdAt,
|
|
updatedAt,
|
|
isPublicProfile,
|
|
isEntitySubscribedByMe,
|
|
slug,
|
|
profilePhotoUrl,
|
|
role,
|
|
const DeepCollectionEquality().hash(_badges),
|
|
const DeepCollectionEquality().hash(_subscriptions),
|
|
const DeepCollectionEquality().hash(_subscribers),
|
|
educationResource);
|
|
|
|
/// Create a copy of ProfileModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ProfileModelImplCopyWith<_$ProfileModelImpl> get copyWith =>
|
|
__$$ProfileModelImplCopyWithImpl<_$ProfileModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ProfileModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ProfileModel implements ProfileModel {
|
|
const factory _ProfileModel(
|
|
{@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") final DateTime? emailVerifiedAt,
|
|
@JsonKey(name: "created_at") final DateTime? createdAt,
|
|
@JsonKey(name: "updated_at") final DateTime? updatedAt,
|
|
@JsonKey(name: "is_public_profile") required final bool isPublicProfile,
|
|
@JsonKey(name: 'is_entity_subscribed_by_me')
|
|
required final bool isEntitySubscribedByMe,
|
|
@JsonKey(name: "slug") required final String slug,
|
|
@JsonKey(name: "profile_photo_url") required final String profilePhotoUrl,
|
|
@JsonKey(name: "role") required final String role,
|
|
@JsonKey(name: "badges") required final List<BadgeModel> badges,
|
|
@JsonKey(name: "subscriptions")
|
|
required final List<ProfilePreviewModel> subscriptions,
|
|
@JsonKey(name: "subscribers")
|
|
required final List<ProfilePreviewModel> subscribers,
|
|
@JsonKey(name: "education_resource")
|
|
final EducationResource? educationResource}) = _$ProfileModelImpl;
|
|
|
|
factory _ProfileModel.fromJson(Map<String, dynamic> json) =
|
|
_$ProfileModelImpl.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: "created_at")
|
|
DateTime? get createdAt;
|
|
@override
|
|
@JsonKey(name: "updated_at")
|
|
DateTime? get updatedAt;
|
|
@override
|
|
@JsonKey(name: "is_public_profile")
|
|
bool get isPublicProfile;
|
|
@override
|
|
@JsonKey(name: 'is_entity_subscribed_by_me')
|
|
bool get isEntitySubscribedByMe;
|
|
@override
|
|
@JsonKey(name: "slug")
|
|
String get slug;
|
|
@override
|
|
@JsonKey(name: "profile_photo_url")
|
|
String get profilePhotoUrl;
|
|
@override
|
|
@JsonKey(name: "role")
|
|
String get role;
|
|
@override
|
|
@JsonKey(name: "badges")
|
|
List<BadgeModel> get badges;
|
|
@override
|
|
@JsonKey(name: "subscriptions")
|
|
List<ProfilePreviewModel> get subscriptions;
|
|
@override
|
|
@JsonKey(name: "subscribers")
|
|
List<ProfilePreviewModel> get subscribers;
|
|
@override
|
|
@JsonKey(name: "education_resource")
|
|
EducationResource? get educationResource;
|
|
|
|
/// Create a copy of ProfileModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ProfileModelImplCopyWith<_$ProfileModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
EducationResource _$EducationResourceFromJson(Map<String, dynamic> json) {
|
|
return _EducationResource.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$EducationResource {
|
|
@JsonKey(name: "has_medical_education")
|
|
int? get hasMedical_Education => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "vk_link")
|
|
String? get vkLink => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "insta_link")
|
|
String? get instaLink => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "fb_link")
|
|
String? get fbLink => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "tg_link")
|
|
String? get tgLink => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "personal_site_link")
|
|
String? get personalSiteLink => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "request_state")
|
|
String? get requestState => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this EducationResource to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of EducationResource
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$EducationResourceCopyWith<EducationResource> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $EducationResourceCopyWith<$Res> {
|
|
factory $EducationResourceCopyWith(
|
|
EducationResource value, $Res Function(EducationResource) then) =
|
|
_$EducationResourceCopyWithImpl<$Res, EducationResource>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "has_medical_education") int? hasMedical_Education,
|
|
@JsonKey(name: "vk_link") String? vkLink,
|
|
@JsonKey(name: "insta_link") String? instaLink,
|
|
@JsonKey(name: "fb_link") String? fbLink,
|
|
@JsonKey(name: "tg_link") String? tgLink,
|
|
@JsonKey(name: "personal_site_link") String? personalSiteLink,
|
|
@JsonKey(name: "request_state") String? requestState});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$EducationResourceCopyWithImpl<$Res, $Val extends EducationResource>
|
|
implements $EducationResourceCopyWith<$Res> {
|
|
_$EducationResourceCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of EducationResource
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? hasMedical_Education = freezed,
|
|
Object? vkLink = freezed,
|
|
Object? instaLink = freezed,
|
|
Object? fbLink = freezed,
|
|
Object? tgLink = freezed,
|
|
Object? personalSiteLink = freezed,
|
|
Object? requestState = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
hasMedical_Education: freezed == hasMedical_Education
|
|
? _value.hasMedical_Education
|
|
: hasMedical_Education // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
vkLink: freezed == vkLink
|
|
? _value.vkLink
|
|
: vkLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
instaLink: freezed == instaLink
|
|
? _value.instaLink
|
|
: instaLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
fbLink: freezed == fbLink
|
|
? _value.fbLink
|
|
: fbLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
tgLink: freezed == tgLink
|
|
? _value.tgLink
|
|
: tgLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
personalSiteLink: freezed == personalSiteLink
|
|
? _value.personalSiteLink
|
|
: personalSiteLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
requestState: freezed == requestState
|
|
? _value.requestState
|
|
: requestState // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$EducationResourceImplCopyWith<$Res>
|
|
implements $EducationResourceCopyWith<$Res> {
|
|
factory _$$EducationResourceImplCopyWith(_$EducationResourceImpl value,
|
|
$Res Function(_$EducationResourceImpl) then) =
|
|
__$$EducationResourceImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "has_medical_education") int? hasMedical_Education,
|
|
@JsonKey(name: "vk_link") String? vkLink,
|
|
@JsonKey(name: "insta_link") String? instaLink,
|
|
@JsonKey(name: "fb_link") String? fbLink,
|
|
@JsonKey(name: "tg_link") String? tgLink,
|
|
@JsonKey(name: "personal_site_link") String? personalSiteLink,
|
|
@JsonKey(name: "request_state") String? requestState});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$EducationResourceImplCopyWithImpl<$Res>
|
|
extends _$EducationResourceCopyWithImpl<$Res, _$EducationResourceImpl>
|
|
implements _$$EducationResourceImplCopyWith<$Res> {
|
|
__$$EducationResourceImplCopyWithImpl(_$EducationResourceImpl _value,
|
|
$Res Function(_$EducationResourceImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of EducationResource
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? hasMedical_Education = freezed,
|
|
Object? vkLink = freezed,
|
|
Object? instaLink = freezed,
|
|
Object? fbLink = freezed,
|
|
Object? tgLink = freezed,
|
|
Object? personalSiteLink = freezed,
|
|
Object? requestState = freezed,
|
|
}) {
|
|
return _then(_$EducationResourceImpl(
|
|
hasMedical_Education: freezed == hasMedical_Education
|
|
? _value.hasMedical_Education
|
|
: hasMedical_Education // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
vkLink: freezed == vkLink
|
|
? _value.vkLink
|
|
: vkLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
instaLink: freezed == instaLink
|
|
? _value.instaLink
|
|
: instaLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
fbLink: freezed == fbLink
|
|
? _value.fbLink
|
|
: fbLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
tgLink: freezed == tgLink
|
|
? _value.tgLink
|
|
: tgLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
personalSiteLink: freezed == personalSiteLink
|
|
? _value.personalSiteLink
|
|
: personalSiteLink // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
requestState: freezed == requestState
|
|
? _value.requestState
|
|
: requestState // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$EducationResourceImpl implements _EducationResource {
|
|
const _$EducationResourceImpl(
|
|
{@JsonKey(name: "has_medical_education") this.hasMedical_Education,
|
|
@JsonKey(name: "vk_link") this.vkLink,
|
|
@JsonKey(name: "insta_link") this.instaLink,
|
|
@JsonKey(name: "fb_link") this.fbLink,
|
|
@JsonKey(name: "tg_link") this.tgLink,
|
|
@JsonKey(name: "personal_site_link") this.personalSiteLink,
|
|
@JsonKey(name: "request_state") this.requestState});
|
|
|
|
factory _$EducationResourceImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$EducationResourceImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "has_medical_education")
|
|
final int? hasMedical_Education;
|
|
@override
|
|
@JsonKey(name: "vk_link")
|
|
final String? vkLink;
|
|
@override
|
|
@JsonKey(name: "insta_link")
|
|
final String? instaLink;
|
|
@override
|
|
@JsonKey(name: "fb_link")
|
|
final String? fbLink;
|
|
@override
|
|
@JsonKey(name: "tg_link")
|
|
final String? tgLink;
|
|
@override
|
|
@JsonKey(name: "personal_site_link")
|
|
final String? personalSiteLink;
|
|
@override
|
|
@JsonKey(name: "request_state")
|
|
final String? requestState;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'EducationResource(hasMedical_Education: $hasMedical_Education, vkLink: $vkLink, instaLink: $instaLink, fbLink: $fbLink, tgLink: $tgLink, personalSiteLink: $personalSiteLink, requestState: $requestState)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$EducationResourceImpl &&
|
|
(identical(other.hasMedical_Education, hasMedical_Education) ||
|
|
other.hasMedical_Education == hasMedical_Education) &&
|
|
(identical(other.vkLink, vkLink) || other.vkLink == vkLink) &&
|
|
(identical(other.instaLink, instaLink) ||
|
|
other.instaLink == instaLink) &&
|
|
(identical(other.fbLink, fbLink) || other.fbLink == fbLink) &&
|
|
(identical(other.tgLink, tgLink) || other.tgLink == tgLink) &&
|
|
(identical(other.personalSiteLink, personalSiteLink) ||
|
|
other.personalSiteLink == personalSiteLink) &&
|
|
(identical(other.requestState, requestState) ||
|
|
other.requestState == requestState));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, hasMedical_Education, vkLink,
|
|
instaLink, fbLink, tgLink, personalSiteLink, requestState);
|
|
|
|
/// Create a copy of EducationResource
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$EducationResourceImplCopyWith<_$EducationResourceImpl> get copyWith =>
|
|
__$$EducationResourceImplCopyWithImpl<_$EducationResourceImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$EducationResourceImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _EducationResource implements EducationResource {
|
|
const factory _EducationResource(
|
|
{@JsonKey(name: "has_medical_education") final int? hasMedical_Education,
|
|
@JsonKey(name: "vk_link") final String? vkLink,
|
|
@JsonKey(name: "insta_link") final String? instaLink,
|
|
@JsonKey(name: "fb_link") final String? fbLink,
|
|
@JsonKey(name: "tg_link") final String? tgLink,
|
|
@JsonKey(name: "personal_site_link") final String? personalSiteLink,
|
|
@JsonKey(name: "request_state")
|
|
final String? requestState}) = _$EducationResourceImpl;
|
|
|
|
factory _EducationResource.fromJson(Map<String, dynamic> json) =
|
|
_$EducationResourceImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "has_medical_education")
|
|
int? get hasMedical_Education;
|
|
@override
|
|
@JsonKey(name: "vk_link")
|
|
String? get vkLink;
|
|
@override
|
|
@JsonKey(name: "insta_link")
|
|
String? get instaLink;
|
|
@override
|
|
@JsonKey(name: "fb_link")
|
|
String? get fbLink;
|
|
@override
|
|
@JsonKey(name: "tg_link")
|
|
String? get tgLink;
|
|
@override
|
|
@JsonKey(name: "personal_site_link")
|
|
String? get personalSiteLink;
|
|
@override
|
|
@JsonKey(name: "request_state")
|
|
String? get requestState;
|
|
|
|
/// Create a copy of EducationResource
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$EducationResourceImplCopyWith<_$EducationResourceImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ProfileDetailsModel _$ProfileDetailsModelFromJson(Map<String, dynamic> json) {
|
|
return _ProfileDetailsModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ProfileDetailsModel {
|
|
@JsonKey(name: "first_name")
|
|
String get firstName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "last_name")
|
|
String get lastName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "birthdate")
|
|
String 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")
|
|
double 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")
|
|
bool get hasHypo => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "has_hyper")
|
|
bool 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")
|
|
bool get isMoodFillable => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "is_bedtime_fillable")
|
|
bool get isBedtimeFillable => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "activity_coefficient")
|
|
double get activityCoefficient => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ProfileDetailsModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ProfileDetailsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ProfileDetailsModelCopyWith<ProfileDetailsModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ProfileDetailsModelCopyWith<$Res> {
|
|
factory $ProfileDetailsModelCopyWith(
|
|
ProfileDetailsModel value, $Res Function(ProfileDetailsModel) then) =
|
|
_$ProfileDetailsModelCopyWithImpl<$Res, ProfileDetailsModel>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "first_name") String firstName,
|
|
@JsonKey(name: "last_name") String lastName,
|
|
@JsonKey(name: "birthdate") String birthdate,
|
|
@JsonKey(name: "gender") String gender,
|
|
@JsonKey(name: "country") String country,
|
|
@JsonKey(name: "city") String city,
|
|
@JsonKey(name: "lang") String lang,
|
|
@JsonKey(name: "weight") double 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") bool hasHypo,
|
|
@JsonKey(name: "has_hyper") bool 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") bool isMoodFillable,
|
|
@JsonKey(name: "is_bedtime_fillable") bool isBedtimeFillable,
|
|
@JsonKey(name: "activity_coefficient") double activityCoefficient});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ProfileDetailsModelCopyWithImpl<$Res, $Val extends ProfileDetailsModel>
|
|
implements $ProfileDetailsModelCopyWith<$Res> {
|
|
_$ProfileDetailsModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ProfileDetailsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
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 = freezed,
|
|
Object? updatedAt = freezed,
|
|
Object? isMoodFillable = null,
|
|
Object? isBedtimeFillable = null,
|
|
Object? activityCoefficient = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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 String,
|
|
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 double,
|
|
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 bool,
|
|
hasHyper: null == hasHyper
|
|
? _value.hasHyper
|
|
: hasHyper // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
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: freezed == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
updatedAt: freezed == 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 bool,
|
|
isBedtimeFillable: null == isBedtimeFillable
|
|
? _value.isBedtimeFillable
|
|
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
activityCoefficient: null == activityCoefficient
|
|
? _value.activityCoefficient
|
|
: activityCoefficient // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ProfileDetailsModelImplCopyWith<$Res>
|
|
implements $ProfileDetailsModelCopyWith<$Res> {
|
|
factory _$$ProfileDetailsModelImplCopyWith(_$ProfileDetailsModelImpl value,
|
|
$Res Function(_$ProfileDetailsModelImpl) then) =
|
|
__$$ProfileDetailsModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "first_name") String firstName,
|
|
@JsonKey(name: "last_name") String lastName,
|
|
@JsonKey(name: "birthdate") String birthdate,
|
|
@JsonKey(name: "gender") String gender,
|
|
@JsonKey(name: "country") String country,
|
|
@JsonKey(name: "city") String city,
|
|
@JsonKey(name: "lang") String lang,
|
|
@JsonKey(name: "weight") double 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") bool hasHypo,
|
|
@JsonKey(name: "has_hyper") bool 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") bool isMoodFillable,
|
|
@JsonKey(name: "is_bedtime_fillable") bool isBedtimeFillable,
|
|
@JsonKey(name: "activity_coefficient") double activityCoefficient});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ProfileDetailsModelImplCopyWithImpl<$Res>
|
|
extends _$ProfileDetailsModelCopyWithImpl<$Res, _$ProfileDetailsModelImpl>
|
|
implements _$$ProfileDetailsModelImplCopyWith<$Res> {
|
|
__$$ProfileDetailsModelImplCopyWithImpl(_$ProfileDetailsModelImpl _value,
|
|
$Res Function(_$ProfileDetailsModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ProfileDetailsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
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 = freezed,
|
|
Object? updatedAt = freezed,
|
|
Object? isMoodFillable = null,
|
|
Object? isBedtimeFillable = null,
|
|
Object? activityCoefficient = null,
|
|
}) {
|
|
return _then(_$ProfileDetailsModelImpl(
|
|
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 String,
|
|
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 double,
|
|
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 bool,
|
|
hasHyper: null == hasHyper
|
|
? _value.hasHyper
|
|
: hasHyper // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
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: freezed == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
updatedAt: freezed == 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 bool,
|
|
isBedtimeFillable: null == isBedtimeFillable
|
|
? _value.isBedtimeFillable
|
|
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
activityCoefficient: null == activityCoefficient
|
|
? _value.activityCoefficient
|
|
: activityCoefficient // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ProfileDetailsModelImpl implements _ProfileDetailsModel {
|
|
const _$ProfileDetailsModelImpl(
|
|
{@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") this.createdAt,
|
|
@JsonKey(name: "updated_at") 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 _$ProfileDetailsModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ProfileDetailsModelImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "first_name")
|
|
final String firstName;
|
|
@override
|
|
@JsonKey(name: "last_name")
|
|
final String lastName;
|
|
@override
|
|
@JsonKey(name: "birthdate")
|
|
final String 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 double 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 bool hasHypo;
|
|
@override
|
|
@JsonKey(name: "has_hyper")
|
|
final bool 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 bool isMoodFillable;
|
|
@override
|
|
@JsonKey(name: "is_bedtime_fillable")
|
|
final bool isBedtimeFillable;
|
|
@override
|
|
@JsonKey(name: "activity_coefficient")
|
|
final double activityCoefficient;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ProfileDetailsModel(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 _$ProfileDetailsModelImpl &&
|
|
(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,
|
|
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 ProfileDetailsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ProfileDetailsModelImplCopyWith<_$ProfileDetailsModelImpl> get copyWith =>
|
|
__$$ProfileDetailsModelImplCopyWithImpl<_$ProfileDetailsModelImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ProfileDetailsModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ProfileDetailsModel implements ProfileDetailsModel {
|
|
const factory _ProfileDetailsModel(
|
|
{@JsonKey(name: "first_name") required final String firstName,
|
|
@JsonKey(name: "last_name") required final String lastName,
|
|
@JsonKey(name: "birthdate") required final String 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 double 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 bool hasHypo,
|
|
@JsonKey(name: "has_hyper") required final bool 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") final DateTime? createdAt,
|
|
@JsonKey(name: "updated_at") final DateTime? updatedAt,
|
|
@JsonKey(name: "is_mood_fillable") required final bool isMoodFillable,
|
|
@JsonKey(name: "is_bedtime_fillable")
|
|
required final bool isBedtimeFillable,
|
|
@JsonKey(name: "activity_coefficient")
|
|
required final double activityCoefficient}) = _$ProfileDetailsModelImpl;
|
|
|
|
factory _ProfileDetailsModel.fromJson(Map<String, dynamic> json) =
|
|
_$ProfileDetailsModelImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "first_name")
|
|
String get firstName;
|
|
@override
|
|
@JsonKey(name: "last_name")
|
|
String get lastName;
|
|
@override
|
|
@JsonKey(name: "birthdate")
|
|
String 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")
|
|
double 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")
|
|
bool get hasHypo;
|
|
@override
|
|
@JsonKey(name: "has_hyper")
|
|
bool 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")
|
|
bool get isMoodFillable;
|
|
@override
|
|
@JsonKey(name: "is_bedtime_fillable")
|
|
bool get isBedtimeFillable;
|
|
@override
|
|
@JsonKey(name: "activity_coefficient")
|
|
double get activityCoefficient;
|
|
|
|
/// Create a copy of ProfileDetailsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ProfileDetailsModelImplCopyWith<_$ProfileDetailsModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ProfilePreviewModel _$ProfilePreviewModelFromJson(Map<String, dynamic> json) {
|
|
return _ProfilePreviewModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ProfilePreviewModel {
|
|
@JsonKey(name: "profile_photo_url")
|
|
String get profilePhotoUrl => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ProfilePreviewModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ProfilePreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ProfilePreviewModelCopyWith<ProfilePreviewModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ProfilePreviewModelCopyWith<$Res> {
|
|
factory $ProfilePreviewModelCopyWith(
|
|
ProfilePreviewModel value, $Res Function(ProfilePreviewModel) then) =
|
|
_$ProfilePreviewModelCopyWithImpl<$Res, ProfilePreviewModel>;
|
|
@useResult
|
|
$Res call({@JsonKey(name: "profile_photo_url") String profilePhotoUrl});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ProfilePreviewModelCopyWithImpl<$Res, $Val extends ProfilePreviewModel>
|
|
implements $ProfilePreviewModelCopyWith<$Res> {
|
|
_$ProfilePreviewModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ProfilePreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? profilePhotoUrl = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
profilePhotoUrl: null == profilePhotoUrl
|
|
? _value.profilePhotoUrl
|
|
: profilePhotoUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ProfilePreviewModelImplCopyWith<$Res>
|
|
implements $ProfilePreviewModelCopyWith<$Res> {
|
|
factory _$$ProfilePreviewModelImplCopyWith(_$ProfilePreviewModelImpl value,
|
|
$Res Function(_$ProfilePreviewModelImpl) then) =
|
|
__$$ProfilePreviewModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({@JsonKey(name: "profile_photo_url") String profilePhotoUrl});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ProfilePreviewModelImplCopyWithImpl<$Res>
|
|
extends _$ProfilePreviewModelCopyWithImpl<$Res, _$ProfilePreviewModelImpl>
|
|
implements _$$ProfilePreviewModelImplCopyWith<$Res> {
|
|
__$$ProfilePreviewModelImplCopyWithImpl(_$ProfilePreviewModelImpl _value,
|
|
$Res Function(_$ProfilePreviewModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ProfilePreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? profilePhotoUrl = null,
|
|
}) {
|
|
return _then(_$ProfilePreviewModelImpl(
|
|
profilePhotoUrl: null == profilePhotoUrl
|
|
? _value.profilePhotoUrl
|
|
: profilePhotoUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ProfilePreviewModelImpl implements _ProfilePreviewModel {
|
|
const _$ProfilePreviewModelImpl(
|
|
{@JsonKey(name: "profile_photo_url") required this.profilePhotoUrl});
|
|
|
|
factory _$ProfilePreviewModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ProfilePreviewModelImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "profile_photo_url")
|
|
final String profilePhotoUrl;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ProfilePreviewModel(profilePhotoUrl: $profilePhotoUrl)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ProfilePreviewModelImpl &&
|
|
(identical(other.profilePhotoUrl, profilePhotoUrl) ||
|
|
other.profilePhotoUrl == profilePhotoUrl));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, profilePhotoUrl);
|
|
|
|
/// Create a copy of ProfilePreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ProfilePreviewModelImplCopyWith<_$ProfilePreviewModelImpl> get copyWith =>
|
|
__$$ProfilePreviewModelImplCopyWithImpl<_$ProfilePreviewModelImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ProfilePreviewModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ProfilePreviewModel implements ProfilePreviewModel {
|
|
const factory _ProfilePreviewModel(
|
|
{@JsonKey(name: "profile_photo_url")
|
|
required final String profilePhotoUrl}) = _$ProfilePreviewModelImpl;
|
|
|
|
factory _ProfilePreviewModel.fromJson(Map<String, dynamic> json) =
|
|
_$ProfilePreviewModelImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "profile_photo_url")
|
|
String get profilePhotoUrl;
|
|
|
|
/// Create a copy of ProfilePreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ProfilePreviewModelImplCopyWith<_$ProfilePreviewModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|