def product_to_dict(product):
    """
    Convert an instance of the Product model to a dict.

    :param product: An instance of the Product model.
    :return:        A dict representing the product.
    """
    return {
        'id': product.id,
        'name': product.name,
        'supplierId': product.supplierId
    }