toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'mailboxPath': mailboxPath,
  'mailboxType': mailboxType.name,
  if (ownerPeerId != null) 'ownerPeerId': ownerPeerId,
  'messageCount': messageCount,
  'timestamp': timestamp,
  if (serverPeerId != null) 'serverPeerId': serverPeerId,
};