InAppFormTemplateAttachment

Represents a form template attachment.

Represents a form template attachment and inherits from InAppTemplateAttachment.

Properties

NameReturn TypeDescription
idStringThe ID of the template.
typeInAppTemplateTypeThe type of the form template attachment.
referenceStringThe reference to the form template attachment.
contentTypeStringThe content type of the form template attachment.
titleStringThe title of the form template is attached.
formFieldsArrayListThe elements of the form template attachment.

Functions

toJson

Converts the form template attachment to a JSONObject.

Syntax: fun toJson(): JSONObject

Return Value: The JSONObject converted from the form template attachment.

Companion Functions

fromJson

Converts a JSONObject to a form template attachment.

Syntax: fun fromJson(jsonObject: JSONObject): InAppFormTemplateAttachment?

Return Value The form template attachment was converted from the JSONObject.

Parameters

ParametersTypeDescription
jsonObjectJSONObjectThe JSONObject to convert.