Is it possible to delete class properties dynamically in Apex
Example:
public class BananaHolder() {
public boolean isRipe;
public boolean isDelicious;
public integer somePropertyThatShouldntBeSentOverJson;
public string JSON() { return JSON.serialize(this); }
}
BananaHolder banana = getRandomBanana();
// Delete somePropertyThatShouldntBeSentOverJson property
String jsonString = banana.JSON();