def METHOD_NAME(self, obj):
    if obj:
        return {
            "author": obj.author,
            "image": obj.image.url if obj.image else None,
        }
    return {
        "author": settings.SITE_NAME,
        "image": None,
    }