toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'setGameScore',
if (extra != null) '@extra': extra,
'chat_id': chat_id,
'message_id': message_id,
'edit_message': edit_message,
'user_id': user_id,
'score': score,
'force': force
};
}