toJson method
Converts a BotCommandScopeChatMember to a Map for JSON encoding.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.toJson(),
'chat_id': chatId.toJson(),
'user_id': userId,
}..removeWhere(_nullFilter);
}