def METHOD_NAME(cls, alert):
    return GenericAlert(
        timestamp=alert['discoverydate'],
        url=f'{TNS_BASE_URL}object/' + alert['objname'],
        id=alert['objname'],
        name=alert['name_prefix'] + alert['objname'],
        ra=alert['radeg'],
        dec=alert['decdeg'],
        mag=alert['discoverymag'],
        score=alert['name_prefix'] == 'SN'
    )