diff --git a/protobuf/lib/src/protobuf/json/json_web.dart b/protobuf/lib/src/protobuf/json/json_web.dart index b0a8e2ec..6f3934bb 100644 --- a/protobuf/lib/src/protobuf/json/json_web.dart +++ b/protobuf/lib/src/protobuf/json/json_web.dart @@ -14,16 +14,16 @@ import '../utils.dart'; @JS('JSON') extension type _JSON._(JSObject _) implements JSObject { - @JS('JSON.stringify') + @JS('stringify') external static JSString _stringify(JSObject value); - @JS('JSON.parse') + @JS('parse') external static JSAny? _parse(JSString text); } @JS('Number') extension type _Number._(JSObject _) implements JSObject { - @JS('Number.isInteger') + @JS('isInteger') external static bool _isInteger(JSAny value); }