'Serialize this trigger as a dictionary
This is used for out-of-process codeintel'

def to_dict(self):

    return dict(lang=self.lang, form=self.form, type=self.type, pos=self.pos, implicit=self.implicit, length=self.length, extentLength=self.extentLength, retriggerOnCompletion=self.retriggerOnCompletion, **self.extra)
