@classmethod
def fromDict(cls, state):
    """Creates a diagnostics objects from state dict"""
    return cls(checker=state['checker'], filename=state['filename'],
        error_code=state['error_code'], text=state['text'], line_number=
        state['line_number'], column_number=state['column_number'],
        severity=state['severity'])
