Timeline for How do we implement a custom put() method for a wrapper class in APEX?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 23, 2021 at 18:48 | vote | accept | VarunC | ||
Jul 23, 2021 at 18:14 | comment | added | VarunC | Thnx. Yes I misunderstood earlier. Seems much friendlier approach like that. Gonna use it now :-) | |
Jul 23, 2021 at 17:40 | comment | added | Adrian Larson♦ | I didn't say you'd put it as an attribute, but rather a parameter in the constructor. You wouldn't change your wrapper structure using that approach. | |
Jul 23, 2021 at 17:20 | comment | added | VarunC |
Don't think I could use sObject instance as the response I'm trapping in wrapper is a JSON External API Response. And have similar thoughts like yours on the other approach of using Map variable within the class.
|
|
Jul 23, 2021 at 16:40 | history | answered | Adrian Larson♦ | CC BY-SA 4.0 |