extractFromCache method

List<Map<String, dynamic>> extractFromCache(
  1. Map<String, dynamic> cache
)

Implementation

List<Map<String, dynamic>> extractFromCache(Map<String, dynamic> cache) {
  List<Map<String, dynamic>> values = [];
  for (String key in cache.keys) {
    Map<String, dynamic> data = cache[key];
    data.remove("metadata");

    values.add(data);
  }

  return values;
}