toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts a BotCommandScopeChatAdministrators to a Map for JSON encoding.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.toJson(),
    'chat_id': chatId,
  }..removeWhere(_nullFilter);
}