Fix unknown JSON handling (#1058)

- Fix hash code and equality handling with unknown JSON data. (cl/613592094)

- Fix converting unknown JSON data to Dart when deserializing, and to JS when
  serializing. (cl/812691555)

- Make unknown JSON data type `Object?` instead of `dynamic` to prevent
  accidentally making dynamic calls. (cl/812691555)

- Also fix a sync error in b7613581d847e1e36e76f0e36db3a412d8fea5b1 where the
  `_unknownJsonData = null` line was added to  `_ensureUnknownFields` instead
  of `_clear`.
5 files changed
tree: dfd7208fb71c912ece28601d17684cbac895bdf8
  1. .github/
  2. benchmarks/
  3. protobuf/
  4. protoc_plugin/
  5. tool/
  6. .gitignore
  7. analysis_options.yaml
  8. AUTHORS
  9. LICENSE
  10. pubspec.yaml
  11. README.md
README.md

Protobuf support for Dart

Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.

This repository is home to packages related to protobuf support for Dart.

PackageDescriptionPublished Version
protobufRuntime library for protocol buffers support.pub package
protoc_pluginA protobuf protoc compiler plugin used to generate Dart code.pub package
benchmarksBenchmarks for various protobuf functions.

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.