initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user