Fixed Remaining Migration Errors

This commit is contained in:
2024-03-15 22:47:43 +01:00
parent 421d19f91f
commit ead31e12c0
9 changed files with 120 additions and 94 deletions

View File

@ -29,7 +29,7 @@ class TimeProgressEntity {
};
}
static TimeProgressEntity fromJson(Map<String, Object> json) {
static TimeProgressEntity fromJson(dynamic json) {
final String id = json["id"] as String;
final String name = json["name"] as String;
final DateTime startTime =

View File

@ -16,7 +16,6 @@ class TimeProgressRepository {
}
return Future<List<TimeProgressEntity>>.value(codec
.decode(jsonString)["timers"]
.cast<Map<String, Object>>()
.map<TimeProgressEntity>(TimeProgressEntity.fromJson)
.toList(growable: false));
}