toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'supergroup',
    if (extra != null) '@extra': extra,
    'id': id,
    'usernames': usernames,
    'date': date,
    'status': status,
    'member_count': member_count,
    'has_linked_chat': has_linked_chat,
    'has_location': has_location,
    'sign_messages': sign_messages,
    'join_to_send_messages': join_to_send_messages,
    'join_by_request': join_by_request,
    'is_slow_mode_enabled': is_slow_mode_enabled,
    'is_channel': is_channel,
    'is_broadcast_group': is_broadcast_group,
    'is_forum': is_forum,
    'is_verified': is_verified,
    'restriction_reason': restriction_reason,
    'is_scam': is_scam,
    'is_fake': is_fake,
    'has_active_stories': has_active_stories,
    'has_unread_active_stories': has_unread_active_stories
  };
}