toJson method

Map<String, String> toJson()

Implementation

Map<String, String> toJson() {
  return {
    'title': title,
    'price': price,
    'availability': availability,
    'image': image,
    'link': link,
  };
}