toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'user': user.toJson(),
'text': text,
'date': date,
'category': category,
'categorydetail': categorydetail,
'categorydetailID': categorydetailID,
'enableButtons': enableButtons,
};
}