We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aafd169 commit 2066f88Copy full SHA for 2066f88
lib/src/api/typed_value.dart
@@ -221,7 +221,7 @@ extension ConversionExt on Object? {
221
}
222
223
/// Converts given object to a map if possible. Returns null otherwise.
224
- Map? toMap() {
+ Map<Object?,Object?>? toMap() {
225
if (this == null) return null;
226
if (this is Map) return this as Map;
227
if (this is String) return tryJsonDecode(this as String).tryCast<Map>();
0 commit comments