toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'title': title,
  'price': price,
  'description': description,
  'category': category,
  'image': image,
};