getJsonWithMetadata<K, V> method

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

Implementation

Future<KVNamespaceGetWithMetadataResult<Map<K, V>?>>
    getJsonWithMetadata<K, V>(
  String name, {
  int? cacheTtl,
}) async {
  return KVNamespaceGetWithMetadataResult._(
    await _delegate.getWithMetadata(
      name,
      interop.KVNamespaceGetOptions()
        ..type = 'json'
        ..cacheTtl = cacheTtl,
    ),
  );
}