Skip to content

ApiServiceRecipesDataModel

pozil edited this page Oct 11, 2021 · 15 revisions

layout: default

ApiServiceRecipesDataModel class

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.

Related

ApiServiceRecipes


Properties

exampleArrayList<Integer>

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

exampleBooleanBoolean

exampleColorString

exampleCouldBeNullString

exampleNumberInteger

exampleObjectExampleObject

exampleStringString


Methods

parse(String json)List<ApiServiceRecipesDataModel>

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.

Return

Type

List<ApiServiceRecipesDataModel>

Description

List&lt;ApiServiceRecipesDataModel&gt;

Example

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

Inner Classes

ApiServiceRecipesDataModel.ExampleObject class

example of how to model a nested json object


Properties

aString
cpubli

Clone this wiki locally