diff --git a/packages/json_god/CHANGELOG.md b/packages/json_god/CHANGELOG.md index c4548c67..f24d0c66 100644 --- a/packages/json_god/CHANGELOG.md +++ b/packages/json_god/CHANGELOG.md @@ -1,6 +1,10 @@ +# 4.0.2 +* Updated pubspec description +* Fixed static analysis errors + # 4.0.1 * Added example -* Updated README.md +* Updated README # 4.0.0 * Migrated to support Dart SDK 2.12.x NNBD diff --git a/packages/json_god/README.md b/packages/json_god/README.md index 7e2c9762..4ce5e80d 100644 --- a/packages/json_god/README.md +++ b/packages/json_god/README.md @@ -1,5 +1,5 @@ # angel3_json_god -[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_json_god) +[![version](https://img.shields.io/badge/pub-v4.0.2-brightgreen)](https://pub.dartlang.org/packages/angel3_json_god) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) diff --git a/packages/json_god/lib/src/reflection.dart b/packages/json_god/lib/src/reflection.dart index 0fceca67..2f8e3f31 100644 --- a/packages/json_god/lib/src/reflection.dart +++ b/packages/json_god/lib/src/reflection.dart @@ -102,8 +102,7 @@ deserialize(value, Type outputType, Deserializer deserializer, /// Uses mirrors to deserialize an object. _deserializeFromJsonByReflection( - data, Deserializer deserializer, Type outputType, - [@deprecated bool debug = false]) { + data, Deserializer deserializer, Type outputType) { // Check for fromJson var typeMirror = reflectType(outputType); diff --git a/packages/json_god/lib/src/serialize.dart b/packages/json_god/lib/src/serialize.dart index d6ef41ff..8a9d4342 100644 --- a/packages/json_god/lib/src/serialize.dart +++ b/packages/json_god/lib/src/serialize.dart @@ -21,8 +21,9 @@ serializeObject(value) { } else if (value is Map) { logger.info("Serializing this Map: $value"); return serializeMap(value); - } else + } else { return serializeObject(reflection.serialize(value, serializeObject)); + } } /// Recursively transforms a Map and its children into JSON-serializable data. diff --git a/packages/json_god/pubspec.yaml b/packages/json_god/pubspec.yaml index d2ea4819..7f937e16 100644 --- a/packages/json_god/pubspec.yaml +++ b/packages/json_god/pubspec.yaml @@ -1,6 +1,6 @@ name: angel3_json_god -version: 4.0.1 -description: Easy JSON serialization and deserialization in Dart. +version: 4.0.2 +description: Easy JSON to Object serialization and deserialization in Dart. homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/json_god environment: sdk: '>=2.12.0 <3.0.0'