Skip to main content

Function: themeInstallConfigurationFieldsToRecordObject()

themeInstallConfigurationFieldsToRecordObject(fields): object

Maps a ThemeInstallConfigurationResource's fields (which is essentially { key: string; value: string; }[]), to the form { [key: string]: any }. This allows you to reference field values in the format config.key instead of having to iterate over an array to find the field with a matching key.

Parameters​

fields​

ThemeInstallConfigurationFieldResource[]

Returns​

object