toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'invite_link': inviteLink,
    'creator': creator,
    'creates_join_request': createsJoinRequest,
    'is_primary': isPrimary,
    'is_revoked': isRevoked,
    'name': name,
    'expire_date': expireDate,
    'member_limit': memberLimit,
    'pending_join_request_count': pendingJoinRequestCount,
  }..removeWhere((_, v) => v == null);
}