registerType method
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;
}