forked from eatvio/eatvio_app
16 lines
480 B
Dart
16 lines
480 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'statistic_model.freezed.dart';
|
|
part 'statistic_model.g.dart';
|
|
|
|
@freezed
|
|
abstract class StatisticModel with _$StatisticModel {
|
|
factory StatisticModel({
|
|
required int total,
|
|
@JsonKey(name: 'in_progress') required int inProgress,
|
|
required int finished,
|
|
required int canceled,
|
|
}) = _StatisticModel;
|
|
|
|
factory StatisticModel.fromJson(Map<String, dynamic> json) => _$StatisticModelFromJson(json);
|
|
} |