registerType method

Trigger registerType(
  1. String type,
  2. dynamic constructor
)

Registers a custom type for deserialization. When calling {@link Trigger#fromJSON} the trigger is able to pick the correct constructor in order to create custom trigger regions.

Implementation

Trigger registerType(String type, constructor ) {
	_typesMap[type] = constructor;
	return this;
}