toJson method
Generate a json from the model
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'name': name,
'description': description,
'price': price,
'count': count,
'isPublic': isPublic,
'image': image,
'metadata': metadata,
};