toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'supergroupFullInfo',
    if (extra != null) '@extra': extra,
    'photo': photo,
    'description': description,
    'member_count': member_count,
    'administrator_count': administrator_count,
    'restricted_count': restricted_count,
    'banned_count': banned_count,
    'linked_chat_id': linked_chat_id,
    'slow_mode_delay': slow_mode_delay,
    'slow_mode_delay_expires_in': slow_mode_delay_expires_in,
    'can_get_members': can_get_members,
    'has_hidden_members': has_hidden_members,
    'can_hide_members': can_hide_members,
    'can_set_sticker_set': can_set_sticker_set,
    'can_set_location': can_set_location,
    'can_get_statistics': can_get_statistics,
    'can_toggle_aggressive_anti_spam': can_toggle_aggressive_anti_spam,
    'is_all_history_available': is_all_history_available,
    'has_aggressive_anti_spam_enabled': has_aggressive_anti_spam_enabled,
    'has_pinned_stories': has_pinned_stories,
    'sticker_set_id': sticker_set_id,
    'location': location,
    'invite_link': invite_link,
    'bot_commands': bot_commands,
    'upgraded_from_basic_group_id': upgraded_from_basic_group_id,
    'upgraded_from_max_message_id': upgraded_from_max_message_id
  };
}