optFrom static method

TunnelCacheOptions? optFrom(
  1. Map<String, dynamic> d,
  2. String key
)

Decodes the optional object at key, or null.

Implementation

static TunnelCacheOptions? optFrom(Map<String, dynamic> d, String key) {
  final v = d[key];
  return v is Map ? fromJson(Json.asObject(v, key)) : null;
}