@classmethod
def promote_from_model(cls, literal_model):
    """
        Creates an object of this type from the model primitive defining it.
        :param flytekit.models.literals.Literal literal_model:
        :rtype: Datetime
        """
    return cls(literal_model.scalar.primitive.datetime)
