toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
    "id": id,
    "name": name,
    "code": code,
    "current_price": currentPrice,
    "sales_price": salesPrice,
    "on_sales": onSales,
    "supplier_price": supplierPrice,
    "markup": markup,
    "sku": sku,
    "barcode": barcode,
    "quantity": quantity,
    "track_quantity": trackQuantity,
    "reorder_point": reorderPoint,
    "active": active,
    "is_subscription": isSubscription,
    "max_billing_count": maxBillingCount,
    "billing_cycle": billingCycle,
    "is_default": isDefault,
};