def METHOD_NAME(profile):
    default = printerProfileManager.get_default()["id"]
    current = printerProfileManager.get_current_or_default()["id"]
    converted = copy.deepcopy(profile)
    converted["resource"] = url_for(
        ".printerProfilesGet", identifier=profile["id"], _external=True
    )
    converted["default"] = profile["id"] == default
    converted["current"] = profile["id"] == current
    return converted