to_json method

Map<String, dynamic> to_json()

Implementation

Map<String, dynamic> to_json() {
  return {
    'name': name,
    'image': image_src,
    'price': price,
    'description': description,
  };
}