getJson<K, V> method

Future<Map<K, V>> getJson<K, V>(
  1. String name, {
  2. int? cacheTtl,
})

Implementation

Future<Map<K, V>> getJson<K, V>(
  String name, {
  int? cacheTtl,
}) async {
  final json = await _delegate.get(
    name,
    interop.KVNamespaceGetOptions()
      ..type = 'json'
      ..cacheTtl = cacheTtl,
  );

  return dartify(json) as Map<K, V>;
}