-
Notifications
You must be signed in to change notification settings - Fork 460
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 exampleArray
List<Integer>
public exampleBoolean
Boolean
public exampleColor
String
public exampleCouldBeNull
String
public exampleNumber
Integer
public exampleObject
ExampleObject
public exampleString
String
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>
System.debug(ApiServiceRecipesDataModel.parse(ApiServiceRecipesDataModel_Tests.testJSON));
example of how to model a nested JSON object
public a
String
public c
String