toMap method

Map<String, dynamic> toMap ()
override

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> map = {};
  if (_decrypted != null) {
    map['decrypted'] = _decrypted;
  }
  if (_nonce != null) {
    map['nonce'] = _nonce;
  }
  if (_their_public != null) {
    map['their_public'] = _their_public;
  }
  if (_secret != null) {
    map['secret'] = _secret;
  }
  return map;
}