Solanine is the toxin (Glycoalkaloid Poison) contained in all nightshade plants such as tomatoes, potatoes, and goji berries. It can occur naturally in any part of the plant, including the leaves, fruit, and tubers. Solanine has fungicidal and pesticidal properties. Again, it is one of the plant’s natural defenses.