getMetadata<T> method

T getMetadata<T>()

Returns the metadata associated to the RemotePeer

Implementation

T getMetadata<T>() {
  final data = jsonDecode(_metadata);
  return data as T;
}