getMetadata<T> method
T
getMetadata<T>()
Returns the metadata associated to the LocalPeer
Implementation
T getMetadata<T>() {
Map<String, dynamic> data =
Map<String, dynamic>.from(json.decode(_metadata ?? "{}"));
return data as T;
}