Map<String, dynamic> toJson() { return { 'action': action, 'module': module, 'from': from, 'to': to, 'timestamp': timestamp, }; }