toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      '@type': CONSTRUCTOR,
      'id': id,
      'usernames': usernames?.toJson(),
      'date': date,
      'status': status.toJson(),
      'member_count': memberCount,
      'boost_level': boostLevel,
      'has_linked_chat': hasLinkedChat,
      'has_location': hasLocation,
      'sign_messages': signMessages,
      'join_to_send_messages': joinToSendMessages,
      'join_by_request': joinByRequest,
      'is_slow_mode_enabled': isSlowModeEnabled,
      'is_channel': isChannel,
      'is_broadcast_group': isBroadcastGroup,
      'is_forum': isForum,
      'is_verified': isVerified,
      'restriction_reason': restrictionReason,
      'is_scam': isScam,
      'is_fake': isFake,
      'has_active_stories': hasActiveStories,
      'has_unread_active_stories': hasUnreadActiveStories,
    };