forked from eatvio/eatvio_app
19 lines
793 B
Dart
19 lines
793 B
Dart
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);
|
|
}
|