decodeAsync<T> static method
FutureOr<T>
decodeAsync<T>(
- FutureOr<
String> encodedJson, { - Type? type,
- TypeInfo? typeInfo,
- JsomMapDecoder? jsomMapDecoder,
- EntityHandlerProvider? entityHandlerProvider,
- EntityCache? entityCache,
- bool? autoResetEntityCache,
Decodes encodedJson
to a JSON collection/data accepting async values.
Implementation
static FutureOr<T> decodeAsync<T>(FutureOr<String> encodedJson,
{Type? type,
TypeInfo? typeInfo,
JsomMapDecoder? jsomMapDecoder,
EntityHandlerProvider? entityHandlerProvider,
EntityCache? entityCache,
bool? autoResetEntityCache}) {
var jsonDecoder =
_buildJsonDecoder(jsomMapDecoder, entityHandlerProvider, entityCache);
return jsonDecoder.decodeAsync(encodedJson,
type: type,
typeInfo: typeInfo,
autoResetEntityCache: autoResetEntityCache);
}