toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'name': name,
'price': price,
'quantity': quantity,
'imgfile': imgfile,
'timestamp': timestamp.toIso8601String(),
'actualdateadded': actualdateadded.toIso8601String(),
};
}