15 lines
557 B
Dart
15 lines
557 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
import '../../../core/models/models.dart';
|
|
|
|
part 'dashboard_summary.freezed.dart';
|
|
|
|
/// Client-side composition of the two data sources the Dashboard needs —
|
|
/// no server endpoint returns this shape directly. Not JSON-serializable
|
|
/// (nothing here is ever sent/stored as JSON), so no `fromJson`/`toJson`.
|
|
@freezed
|
|
sealed class DashboardSummary with _$DashboardSummary {
|
|
const factory DashboardSummary({required List<Service> services, required NodeInfo node}) =
|
|
_DashboardSummary;
|
|
}
|