layoutIDMap property

Map<String, String> layoutIDMap
final

This map is a map of CustomLayoutID -> OriginalLayoutID.

SDKPublishLayouts may be associated with a custom developer-friendly id instead of the original randomly generated string of characters.

To avoid destructive changes to the publish flow and to the SDK, as well as to maintain compatibility and restoration of the original layout id, we keep this map to map the custom id to the original id if available.

If, in the editor, an SDKPublishLayout is renamed with a friendlier id, that mapping is stored here. For automatic usage, we use a LookupMap for all layouts, fonts, variables, and conditions to automatically correct the id when accessing the data.

So whether the original layout id or a custom id is used, the SDK will always return the correct data from this SDKPublishModel.

The original layoutID is always used in all of the fields, but when a CodelesslyWidget tries to access the data, the developer may use a custom id. This map will modify that usage without being destructive.

Implementation

final Map<String, String> layoutIDMap;