Skip to content

Commit ecc96ff

Browse files
committed
Fix DateTimeMap converter.
1 parent 038bbd1 commit ecc96ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/api/converters.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ class NodesMapConverter
7878

7979
/// Top level converter for serializing map of DateTime.
8080
class DateTimeMapConverter
81-
extends JsonConverter<Map<String, DateTime>, Map<String, int>> {
81+
extends JsonConverter<Map<String, DateTime>, Map<String, dynamic>> {
8282
/// Creates a new instance of [DateTimeMapConverter].
8383
const DateTimeMapConverter();
8484

8585
@override
86-
Map<String, DateTime> fromJson(Map<String, int> json) => deserialize(json);
86+
Map<String, DateTime> fromJson(Map<String, dynamic> json) => deserialize(json);
8787

8888
@override
89-
Map<String, int> toJson(Map<String, DateTime> object) => serialize(object);
89+
Map<String, dynamic> toJson(Map<String, DateTime> object) => serialize(object);
9090

9191
/// Top level function for deserializing the millis from JSON as the values of
9292
/// a map to [DateTime].

0 commit comments

Comments
 (0)