@classmethod
def to_api_dict(cls, annotation_type, annotation):
    """
        This method simply puts the annotation_type within
        the annotation dict again.

        :param annotation_type: The type of annotation
        :type annotation_type: str
        :param annotation: The annotation data
        :type annotation: dict
        :returns: the annotation with annotation_type set 
        :rtype: dict
        """
    result = dict(annotation)
    if 'annotationType' in result:
        del result['annotationType']
    result['annotation_type'] = annotation_type
    return result
