decodeFromBytes<T> static method

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

Sames as decode but from a Uint8List.

Implementation

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

  return jsonDecoder.decodeFromBytes(encodedJsonBytes,
      type: type,
      typeInfo: typeInfo,
      autoResetEntityCache: autoResetEntityCache);
}