toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'key': key,
'from': from,
'to': to,
'epochMillis': epochMillis,
'value': value,
'operation': operation,
'messageType': messageType,
AtConstants.isEncrypted: isEncrypted,
'notificationStatus': status,
'expiresAt': expiresAtInEpochMillis,
'metadata': metadata
};
}