import 'package:freezed_annotation/freezed_annotation.dart'; part 'profile_settings_model.freezed.dart'; part 'profile_settings_model.g.dart'; @freezed class ProfileSettingsModel with _$ProfileSettingsModel { const factory ProfileSettingsModel({ @JsonKey(name: "new_updates_notifications") required dynamic newUpdatesNotifications, @JsonKey(name: "diary_reminder_notifications") required dynamic diaryReminderNotifications, @JsonKey(name: "is_mood_fillable") required bool isMoodFillable, @JsonKey(name: "is_bedtime_fillable") required bool isBedtimeFillable, @JsonKey(name: "is_public_profile") required bool isPublicProfile, }) = _ProfileSettingsModel; factory ProfileSettingsModel.fromJson(Map json) => _$ProfileSettingsModelFromJson(json); }