Publish json_god
This commit is contained in:
parent
9dd44d21fc
commit
b68af3789a
5 changed files with 11 additions and 7 deletions
|
@ -1,6 +1,10 @@
|
||||||
|
# 4.0.2
|
||||||
|
* Updated pubspec description
|
||||||
|
* Fixed static analysis errors
|
||||||
|
|
||||||
# 4.0.1
|
# 4.0.1
|
||||||
* Added example
|
* Added example
|
||||||
* Updated README.md
|
* Updated README
|
||||||
|
|
||||||
# 4.0.0
|
# 4.0.0
|
||||||
* Migrated to support Dart SDK 2.12.x NNBD
|
* Migrated to support Dart SDK 2.12.x NNBD
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# angel3_json_god
|
# angel3_json_god
|
||||||
[](https://pub.dartlang.org/packages/angel3_json_god)
|
[](https://pub.dartlang.org/packages/angel3_json_god)
|
||||||
[](https://dart.dev/null-safety)
|
[](https://dart.dev/null-safety)
|
||||||
[](https://gitter.im/angel_dart/discussion)
|
[](https://gitter.im/angel_dart/discussion)
|
||||||
|
|
||||||
|
|
|
@ -102,8 +102,7 @@ deserialize(value, Type outputType, Deserializer deserializer,
|
||||||
|
|
||||||
/// Uses mirrors to deserialize an object.
|
/// Uses mirrors to deserialize an object.
|
||||||
_deserializeFromJsonByReflection(
|
_deserializeFromJsonByReflection(
|
||||||
data, Deserializer deserializer, Type outputType,
|
data, Deserializer deserializer, Type outputType) {
|
||||||
[@deprecated bool debug = false]) {
|
|
||||||
// Check for fromJson
|
// Check for fromJson
|
||||||
var typeMirror = reflectType(outputType);
|
var typeMirror = reflectType(outputType);
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,10 @@ serializeObject(value) {
|
||||||
} else if (value is Map) {
|
} else if (value is Map) {
|
||||||
logger.info("Serializing this Map: $value");
|
logger.info("Serializing this Map: $value");
|
||||||
return serializeMap(value);
|
return serializeMap(value);
|
||||||
} else
|
} else {
|
||||||
return serializeObject(reflection.serialize(value, serializeObject));
|
return serializeObject(reflection.serialize(value, serializeObject));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Recursively transforms a Map and its children into JSON-serializable data.
|
/// Recursively transforms a Map and its children into JSON-serializable data.
|
||||||
Map serializeMap(Map value) {
|
Map serializeMap(Map value) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: angel3_json_god
|
name: angel3_json_god
|
||||||
version: 4.0.1
|
version: 4.0.2
|
||||||
description: Easy JSON serialization and deserialization in Dart.
|
description: Easy JSON to Object serialization and deserialization in Dart.
|
||||||
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/json_god
|
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/json_god
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|
Loading…
Reference in a new issue