def _serialize_names(row, values_fields_mapping):
    """Replace name from ORM side to the serialization side as expected"""
    new_serialized_data = {}
    if not values_fields_mapping:
        new_serialized_data.update(row)
        return new_serialized_data
    for orm_name, serialize_info in values_fields_mapping.items():
        serialize_name, conv_func = serialize_info
        value = conv_func(row[orm_name])
        new_serialized_data[serialize_name] = value
    return new_serialized_data
