Publish json_god

This commit is contained in:
thomashii 2021-05-15 14:46:26 +08:00
parent 9dd44d21fc
commit b68af3789a
5 changed files with 11 additions and 7 deletions

View file

@ -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

View file

@ -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)

View file

@ -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);

View file

@ -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.

View file

@ -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'