Fixed Remaining Migration Errors
This commit is contained in:
@ -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 =
|
||||
|
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user