toJson method

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

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);
}