forked from eatvio/eatvio_app
16 lines
400 B
Dart
16 lines
400 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'rating_model.freezed.dart';
|
|
part 'rating_model.g.dart';
|
|
|
|
@freezed
|
|
abstract class RatingModel with _$RatingModel {
|
|
|
|
factory RatingModel({
|
|
required DateTime date,
|
|
required String title,
|
|
required int amount,
|
|
}) = _RatingModel;
|
|
|
|
factory RatingModel.fromJson(Map<String, dynamic> json) => _$RatingModelFromJson(json);
|
|
} |