toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'type': type,
'chat_id': chatId,
'user_id': userId,
};
}
Creates a json from the object
Map toJson() {
return {
'type': type,
'chat_id': chatId,
'user_id': userId,
};
}