feedback stats added
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// ignore_for_file: invalid_annotation_target
|
||||
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'feedback_stats.freezed.dart';
|
||||
part 'feedback_stats.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class FeedbackStats with _$FeedbackStats {
|
||||
const factory FeedbackStats({
|
||||
@JsonKey(name: 'company_id') required String? companyId,
|
||||
@JsonKey(name: 'last_updated') required int? lastUpdated,
|
||||
@JsonKey(name: 'total_dislikes') required int? totalDislikes,
|
||||
@JsonKey(name: 'total_feedback') required int? totalFeedback,
|
||||
@JsonKey(name: 'total_likes') required int? totalLikes,
|
||||
}) = _FeedbackStats;
|
||||
|
||||
factory FeedbackStats.fromJson(Map<String, Object?> json) =>
|
||||
_$FeedbackStatsFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user