toJson method
Creates a new ChatInviteLink object from json.
Implementation
Map<String, dynamic> toJson() {
return {
'invite_link': inviteLink,
'creator': creator?.toJson(),
'creates_join_request': createsJoinRequest,
'is_primary': isPrimary,
'is_revoked': isRevoked,
'name': name,
'expire_date': expireDate,
'member_limit': memberLimit,
'pending_member_count': pendingMemberCount,
}..removeWhere(_nullFilter);
}