We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98e5910 commit bdb1184Copy full SHA for bdb1184
lib/json_utils.dart
@@ -3,11 +3,12 @@
3
/// packages defining the same type.
4
library json_utils;
5
6
+// Get a nullable type object, idea taken from https://github.com/dart-lang/sdk/issues/48856
7
typedef Nullable<T> = T?;
8
-typedef JsonMap = Map<String, dynamic>;
9
-typedef JsonList = List<dynamic>;
10
-typedef Json = dynamic;
+typedef JsonMap = Map<String, Object?>;
+typedef JsonList = List<Object?>;
11
+typedef Json = Object?;
12
13
class MalformedJsonException implements Exception {
14
MalformedJsonException(this.message, this.json);
0 commit comments