Skip to content

ApiServiceRecipesDataModel

pozil edited this page Aug 8, 2023 · 15 revisions

ApiServiceRecipesDataModel

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

See ApiServiceRecipes

Fields

public exampleArrayList<Integer>

These properties represent the JSON keys that we need to send or recieve.

public exampleBooleanBoolean

public exampleColorString

public exampleCouldBeNullString

public exampleNumberInteger

public exampleObjectExampleObject

public exampleStringString


Methods

public static parse(String json)

Parses the provided JSON string into a list of ApiServiceRecipesDataModel objects

Parameters

Param Description
json Incoming JSON string. Often from an api call's results.

Returns

Type Description
List List<ApiServiceRecipesDataModel>

Example

System.debug(ApiServiceRecipesDataModel.parse(ApiServiceRecipesDataModel_Tests.testJSON));

Classes

ExampleObject

example of how to model a nested json object

Fields

public aString
public cString


Clone this wiki locally