toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'description': description,
    'price_cents': priceCents,
    'quantity': quantity,
    'created_at': createdAt,
    'updated_at': updatedAt,
    'price': price,
    '_destroy': destroy,
  };
}