// 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 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 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: "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 get badges => throw _privateConstructorUsedError; @JsonKey(name: "subscriptions") List get subscriptions => throw _privateConstructorUsedError; @JsonKey(name: "subscribers") List get subscribers => throw _privateConstructorUsedError; /// Serializes this ProfileModel to a JSON map. Map 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 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: "slug") String slug, @JsonKey(name: "profile_photo_url") String profilePhotoUrl, @JsonKey(name: "role") String role, @JsonKey(name: "badges") List badges, @JsonKey(name: "subscriptions") List subscriptions, @JsonKey(name: "subscribers") List subscribers}); } /// @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? slug = null, Object? profilePhotoUrl = null, Object? role = null, Object? badges = null, Object? subscriptions = null, Object? subscribers = 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: 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, 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, subscriptions: null == subscriptions ? _value.subscriptions : subscriptions // ignore: cast_nullable_to_non_nullable as List, subscribers: null == subscribers ? _value.subscribers : subscribers // ignore: cast_nullable_to_non_nullable as List, ) 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: "slug") String slug, @JsonKey(name: "profile_photo_url") String profilePhotoUrl, @JsonKey(name: "role") String role, @JsonKey(name: "badges") List badges, @JsonKey(name: "subscriptions") List subscriptions, @JsonKey(name: "subscribers") List subscribers}); } /// @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? slug = null, Object? profilePhotoUrl = null, Object? role = null, Object? badges = null, Object? subscriptions = null, Object? subscribers = null, }) { 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, 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, subscriptions: null == subscriptions ? _value._subscriptions : subscriptions // ignore: cast_nullable_to_non_nullable as List, subscribers: null == subscribers ? _value._subscribers : subscribers // ignore: cast_nullable_to_non_nullable as List, )); } } /// @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: "slug") required this.slug, @JsonKey(name: "profile_photo_url") required this.profilePhotoUrl, @JsonKey(name: "role") required this.role, @JsonKey(name: "badges") required final List badges, @JsonKey(name: "subscriptions") required final List subscriptions, @JsonKey(name: "subscribers") required final List subscribers}) : _badges = badges, _subscriptions = subscriptions, _subscribers = subscribers; factory _$ProfileModelImpl.fromJson(Map 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: "slug") final String slug; @override @JsonKey(name: "profile_photo_url") final String profilePhotoUrl; @override @JsonKey(name: "role") final String role; final List _badges; @override @JsonKey(name: "badges") List get badges { if (_badges is EqualUnmodifiableListView) return _badges; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_badges); } final List _subscriptions; @override @JsonKey(name: "subscriptions") List get subscriptions { if (_subscriptions is EqualUnmodifiableListView) return _subscriptions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_subscriptions); } final List _subscribers; @override @JsonKey(name: "subscribers") List get subscribers { if (_subscribers is EqualUnmodifiableListView) return _subscribers; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_subscribers); } @override String toString() { return 'ProfileModel(id: $id, name: $name, email: $email, emailVerifiedAt: $emailVerifiedAt, createdAt: $createdAt, updatedAt: $updatedAt, isPublicProfile: $isPublicProfile, slug: $slug, profilePhotoUrl: $profilePhotoUrl, role: $role, badges: $badges, subscriptions: $subscriptions, subscribers: $subscribers)'; } @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.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)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, name, email, emailVerifiedAt, createdAt, updatedAt, isPublicProfile, slug, profilePhotoUrl, role, const DeepCollectionEquality().hash(_badges), const DeepCollectionEquality().hash(_subscriptions), const DeepCollectionEquality().hash(_subscribers)); /// 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 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: "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 badges, @JsonKey(name: "subscriptions") required final List subscriptions, @JsonKey(name: "subscribers") required final List subscribers}) = _$ProfileModelImpl; factory _ProfileModel.fromJson(Map 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: "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 get badges; @override @JsonKey(name: "subscriptions") List get subscriptions; @override @JsonKey(name: "subscribers") List get subscribers; /// 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; } ProfileDetailsModel _$ProfileDetailsModelFromJson(Map 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 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 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 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 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 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 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 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 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 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 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 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; }