deserialize function

dynamic deserialize(
  1. String json,
  2. {Type outputType}
)

Deserializes a JSON string into a Dart datum.

You can also provide an output Type to attempt to serialize the JSON into.

Implementation

deserialize(String json, {Type outputType}) {
  var deserialized = deserializeJson(json, outputType: outputType);
  logger.info("Deserialization result: $deserialized");
  return deserialized;
}