toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'toggleSupergroupJoinToSendMessages',
    if (extra != null) '@extra': extra,
    'supergroup_id': supergroup_id,
    'join_to_send_messages': join_to_send_messages
  };
}