toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'chatStatisticsAdministratorActionsInfo',
    if (extra != null) '@extra': extra,
    'user_id': user_id,
    'deleted_message_count': deleted_message_count,
    'banned_user_count': banned_user_count,
    'restricted_user_count': restricted_user_count
  };
}