JSON Response
{
"subscriptions": {
"abc": "suspanded",
"def": "ACTIVE",
"ghi": "ACTIVE",
"jkl": "ACTIVE"
},
"firstName": "testuser",
"lastName": "test",
"exostarUPN": "xyz@upn",
"exostarEMAIL": "jentest.org",
"a/c": "ACTIVE"
}
Apex wrapper class
public class fromJSON{
public cls_subscriptions subscriptions;
public String firstName;
public String exostarUPN;
public String exostarEMAIL;
public String a/c;
class cls_subscriptions {
public String abc;
public String def;
public String ghi;
public String jkl;
}
}
how can I make cls_subscriptions dynamic coz cls_subscriptions class can hold value more then the variables I have decaled