feat: add settings

This commit is contained in:
mso7nueh
2024-09-30 12:54:55 +03:00
parent 346404503e
commit 860036c35f
18 changed files with 1052 additions and 106 deletions

View File

@@ -0,0 +1,18 @@
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<String, dynamic> json) => _$ProfileSettingsModelFromJson(json);
}