def get_dtypes(raw_metadata):
    """
    Get dict of field names with SoQL data types as keys.

    :param parsed_metadata:     dict, parsed metadata from
                                parse_metadata function
    :return dtypes:             dict of field names and data types
    """
    dtypes = {}
    for column in raw_metadata['columns']:
        dtypes[column['fieldName']] = column['dataTypeName']

    return dtypes