rating_model.dart 609 B

1234567891011121314151617181920212223242526272829
  1. import 'rating_config_model.dart';
  2. class RatingModel {
  3. final int id;
  4. final String? title;
  5. final String? subtitle;
  6. final RatingConfigModel ratingConfig;
  7. RatingModel({
  8. required this.id,
  9. required this.title,
  10. required this.subtitle,
  11. required this.ratingConfig,
  12. });
  13. RatingModel copyWith({
  14. int? id,
  15. String? title,
  16. String? subtitle,
  17. RatingConfigModel? ratingConfig,
  18. }) {
  19. return RatingModel(
  20. id: id ?? this.id,
  21. title: title ?? this.title,
  22. subtitle: subtitle ?? this.subtitle,
  23. ratingConfig: ratingConfig ?? this.ratingConfig,
  24. );
  25. }
  26. }