New answers tagged class
0
votes
How to deserialize JSON to a class where the same variable name has different data types?
maton, anyone who encounters this use case,
I had a similar use case. I ended up opensourcing my take on this https://github.com/gaelmotte/apex-json-serialization
After deploying, your code can be ...
1
vote
Sort Map results
Maps and Sets in Apex have a deterministic order, which means that the order you put elements in them is the order they are iterated over.
For example:
Map<String, String> testMap = new Map<...
Top 50 recent answers are included
Related Tags
class × 1065apex × 825
trigger × 227
unit-test × 206
visualforce × 97
soql × 55
batch × 45
code-coverage × 41
controller × 35
list × 34
method × 30
wrapper-class × 29
scheduled-apex × 23
json × 19
code × 18
map × 17
error × 16
before-trigger × 16
custom-object × 15
email × 14
dml × 14
managed-package × 12
deployment × 12
failing-tests × 12
string × 12