def get_file_hashes(embedded):
    """Get File hashes from embedded field data.

    Args:
        embedded (dict): embedded field data

    Returns:
        list: list of file hashes
    """
    results = []
    hash_values = embedded.get("data", "").get("hashValues", "")
    if hash_values != "":
        for hash_value in hash_values:
            results.append(
                {
                    "value": hash_value.get("value", ""),
                    "type": "File",
                    "hashType": hash_value.get("type", ""),
                }
            )
    return results
Get File hashes from embedded field data.

    Args:
        embedded (dict): embedded field data

    Returns:
        list: list of file hashes
    
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/DataminrPulseThreatIntelligence/dataminr_pulse_to_threat_intelligence_mapping.py