fromMap method
Convert a Dart Map to a KeyPair.
Implementation
KeyPair? fromMap(Map<String, String> map) {
if (map['pub'] == null || map['epub'] == null) {
return null;
}
return KeyPair(
pub: map['pub']!,
epub: map['epub']!,
priv: map['priv'],
epriv: map['epriv'],
);
}