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