diff --git a/protobuf/lib/src/protobuf/json/json_web.dart b/protobuf/lib/src/protobuf/json/json_web.dart index 6f3934bb..fa2354eb 100644 --- a/protobuf/lib/src/protobuf/json/json_web.dart +++ b/protobuf/lib/src/protobuf/json/json_web.dart @@ -389,7 +389,7 @@ Object? _convertRawJsValue( // Allow quoted values, although we don't emit them. if (value.isA()) { final jsNum = value._as(); - return _Number._isInteger(jsNum) ? jsNum.toDartInt : jsNum.toDartDouble; + return jsNum.toDartDouble; } else if (value.isA()) { return double.parse(value._as().toDart); }