forked from eatvio/eatvio_app
feat: add settings
This commit is contained in:
18
lib/features/settings/models/profile_settings_model.dart
Normal file
18
lib/features/settings/models/profile_settings_model.dart
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user