-
Notifications
You must be signed in to change notification settings - Fork 519
ApiServiceRecipesDataModel
pozil edited this page Nov 14, 2024
·
15 revisions
This class contains the 'data transfer object' details. Data transfer objects are used to serialize Apex objects to JSON and web service response JSON to Apex objects.
Group Integration Recipes
These properties represent the JSON keys that we need to send or receive.
public exampleArrayList<Integer>
public exampleBooleanBoolean
public exampleColorString
public exampleCouldBeNullString
public exampleNumberInteger
public exampleObjectExampleObject
public exampleStringString
Parses the provided JSON string into a list of ApiServiceRecipesDataModel objects
public static List<ApiServiceRecipesDataModel> parse(String json)| Name | Type | Description |
|---|---|---|
| json | String | Incoming JSON string. Often from an api call's results. |
List<ApiServiceRecipesDataModel>
,[object Object]
System.debug(ApiServiceRecipesDataModel.parse(ApiServiceRecipesDataModel_Tests.testJSON));example of how to model a nested JSON object
public aString
public cString