Creates a JSON representation of this event.
Map<String, dynamic> toJson() { return { 'ID': id.toString(), 'Type': type.index, 'Responses': responses, 'Extra': extra, }; }