Files
umbrix/lib/features/stats/model/stats_entity.dart
problematicconsumer ed614988a2 Refactor
2023-12-01 12:56:24 +03:30

23 lines
490 B
Dart

import 'package:freezed_annotation/freezed_annotation.dart';
part 'stats_entity.freezed.dart';
@freezed
class StatsEntity with _$StatsEntity {
const StatsEntity._();
const factory StatsEntity({
required int uplink,
required int downlink,
required int uplinkTotal,
required int downlinkTotal,
}) = _StatsEntity;
factory StatsEntity.empty() => const StatsEntity(
uplink: 0,
downlink: 0,
uplinkTotal: 0,
downlinkTotal: 0,
);
}