decode<T> static method

T decode<T>(
  1. String encodedJson, {
  2. Type? type,
  3. TypeInfo? typeInfo,
  4. JsomMapDecoder? jsomMapDecoder,
  5. EntityHandlerProvider? entityHandlerProvider,
  6. EntityCache? entityCache,
  7. bool? autoResetEntityCache,
})

Decodes encodedJson to a JSON collection/data.

Implementation

static T decode<T>(String encodedJson,
    {Type? type,
    TypeInfo? typeInfo,
    JsomMapDecoder? jsomMapDecoder,
    EntityHandlerProvider? entityHandlerProvider,
    EntityCache? entityCache,
    bool? autoResetEntityCache}) {
  var jsonDecoder =
      _buildJsonDecoder(jsomMapDecoder, entityHandlerProvider, entityCache);

  return jsonDecoder.decode(encodedJson,
      type: type,
      typeInfo: typeInfo,
      autoResetEntityCache: autoResetEntityCache);
}