decodeFromBytesAsync<T> static method
FutureOr<T>
decodeFromBytesAsync<T>(
- FutureOr<
Uint8List> encodedJsonBytes, { - Type? type,
- TypeInfo? typeInfo,
- JsomMapDecoder? jsomMapDecoder,
- EntityHandlerProvider? entityHandlerProvider,
- EntityCache? entityCache,
- bool? autoResetEntityCache,
Sames as decodeAsync but from a Uint8List.
Implementation
static FutureOr<T> decodeFromBytesAsync<T>(
FutureOr<Uint8List> encodedJsonBytes, {
Type? type,
TypeInfo? typeInfo,
JsomMapDecoder? jsomMapDecoder,
EntityHandlerProvider? entityHandlerProvider,
EntityCache? entityCache,
bool? autoResetEntityCache,
}) {
var jsonDecoder = _buildJsonDecoder(
jsomMapDecoder,
entityHandlerProvider,
entityCache,
);
return jsonDecoder.decodeFromBytesAsync(
encodedJsonBytes,
type: type,
typeInfo: typeInfo,
autoResetEntityCache: autoResetEntityCache,
);
}