feat(programmer): day sheet providers + controller
Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -37,6 +37,9 @@ class DaySheetSnapshot {
|
||||
'rows': rows.map((r) => r.toJson()).toList(),
|
||||
};
|
||||
|
||||
/// Alias for [toJson]; used by the approval RPC payload.
|
||||
Map<String, dynamic> toMap() => toJson();
|
||||
|
||||
factory DaySheetSnapshot.fromJson(Map<String, dynamic> j) {
|
||||
final rowsList = (j['rows'] as List? ?? [])
|
||||
.map((r) => DaySheetRow.fromJson(r as Map<String, dynamic>))
|
||||
|
||||
Reference in New Issue
Block a user