forked from eatvio/eatvio_app
17 lines
518 B
Dart
17 lines
518 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'calendar_model.freezed.dart';
|
|
|
|
part 'calendar_model.g.dart';
|
|
|
|
@freezed
|
|
class CalendarModel with _$CalendarModel {
|
|
const factory CalendarModel({
|
|
required String date,
|
|
@JsonKey(name: 'is_current_day_included_in_the_chosen_diet_progression') required bool isCurrentDayIncludedInTheChosenDietProgression,
|
|
Object? diary,
|
|
}) = _CalendarModel;
|
|
|
|
factory CalendarModel.fromJson(Map<String, Object?> json) => _$CalendarModelFromJson(json);
|
|
}
|