put method

Future put(
  1. String key,
  2. dynamic value,
  3. DurableObjectPutOptions options
)

Implementation

Future<dynamic> put(
    String key, dynamic value, DurableObjectPutOptions options) {
  var newValue = value;
  if (value is Map || value is Iterable) {
    newValue = jsify(value);
  }
  return js_util.promiseToFuture(
      js_util.callMethod(this, 'put', [key, newValue, options]));
}