@classmethod
def _create_from_stripe_object(cls, data, current_ids=None,
    pending_relations=None, save=True, stripe_account=None):
    """
        Instantiates a model instance using the provided data object received
        from Stripe, and saves it to the database if specified.

        :param data: The data dictionary received from the Stripe API.
        :type data: dict
        :param current_ids: stripe ids of objects that are currently being processed
        :type current_ids: set
        :param pending_relations: list of tuples of relations to be attached post-save
        :type pending_relations: list
        :param save: If True, the object is saved after instantiation.
        :type save: bool
        :param stripe_account: The optional connected account             for which this request is being made.
        :type stripe_account: string
        :returns: The instantiated object.
        """
    instance = cls(**cls._stripe_object_to_record(data, current_ids=
        current_ids, pending_relations=pending_relations, stripe_account=
        stripe_account))
    instance._attach_objects_hook(cls, data)
    if save:
        instance.save(force_insert=True)
    instance._attach_objects_post_save_hook(cls, data, pending_relations=
        pending_relations)
    return instance
