from typing import List


def url_create_payloads(url_information: dict) -> List[dict]:
    """
        Returns a list of payloads.

        Args:
            url_information (dict): The data retrieved from URLHaus db.

        Returns:
            payloads (list): list of payloads associated with the URL.
    """
    payloads = []
    for payload in url_information.get('payloads') or []:
        vt_data = payload.get('virustotal', None)
        vt_information = None
        if vt_data:
            vt_information = {
                'Result': float(vt_data.get('percent', 0)),
                'Link': vt_data.get('link', '')
            }
        payloads.append({
            'Name': payload.get('filename', 'unknown'),
            'Type': payload.get('file_type', ''),
            'MD5': payload.get('response_md5', ''),
            'SHA256': payload.get('response_sha256', ''),
            'VT': vt_information,
        })
    return payloads