decodeAsync<T> static method

FutureOr<T> decodeAsync<T>(
  1. FutureOr<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 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,
  );
}