@classmethod
def create_event(cls, form, creator):
    """Creates a Mongoengine and Google Calendar event from form data.

        Calls either :func:`create_series` or :func:`create_single_event`
        depending on whether or not the event should be recurring.

        :param form: The WTForms form.
        :type form: :class:`CreateEventForm` or a subclass.
        :param creator: The user that is currently logged in.
        :type creator: :class:`~app.models.User`

        :raises: :class:`GoogleCalendarAPIError` and it's subclasses

        :returns: Response from the Google Calendar API.
        :rtype: dict
        """
    if form.is_recurring.data:
        return cls.create_series(form, creator)
    return cls.create_single_event(form, creator)
