shallowClone method

Future<PluginInformation> shallowClone()

Implementation

Future<PluginInformation> shallowClone() async {
  ByteSink bout = ByteSink();
  toByteArrayStream(bout);
  bout.close();
  PluginInformation ret = await fromByteArray(await bout.bytes);
  ret.secret.setRandomSecret(0);
  return ret;
}