fromJson static method

PluginCall fromJson(
  1. Map map
)

Implementation

static PluginCall fromJson(Map map) {
  var proxy = TypedMapProxy(map);

  return PluginCall(
    proxy.getTyped('id'),
    proxy.getTyped('target'),
    proxy.getTyped('method'),
    timeout: _parseDuration(proxy.getTyped('timeout')),
    args: proxy['args'],
  );
}