forked from eatvio/eatvio_app
16 lines
384 B
Dart
16 lines
384 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,
|
|
Object? diary,
|
|
}) = _CalendarModel;
|
|
|
|
factory CalendarModel.fromJson(Map<String, Object?> json) =>
|
|
_$CalendarModelFromJson(json);
|
|
}
|