Returns a JSON view used by the snapshot/dashboard.
Map<String, dynamic> toJson() => <String, dynamic>{ 'event': name, 'at': at.toIso8601String(), if (message != null) 'message': message, };