fromJsonListAsync<T> static method

FutureOr<List<T?>> fromJsonListAsync<T>(
  1. FutureOr<Iterable> o, {
  2. Type? type,
  3. TypeInfo? typeInfo,
  4. JsomMapDecoder? jsomMapDecoder,
  5. EntityHandlerProvider? entityHandlerProvider,
  6. EntityCache? entityCache,
  7. bool? autoResetEntityCache,
})

Converts o to as List of type allowing async calls (Future and FutureOr).

Implementation

static FutureOr<List<T?>> fromJsonListAsync<T>(
  FutureOr<Iterable> o, {
  Type? type,
  TypeInfo? typeInfo,
  JsomMapDecoder? jsomMapDecoder,
  EntityHandlerProvider? entityHandlerProvider,
  EntityCache? entityCache,
  bool? autoResetEntityCache,
}) {
  var jsonDecoder = _buildJsonDecoder(
    jsomMapDecoder,
    entityHandlerProvider,
    entityCache,
  );

  return jsonDecoder.fromJsonListAsync<T>(
    o,
    type: type,
    typeInfo: typeInfo,
    autoResetEntityCache: autoResetEntityCache,
  );
}