toTrigger

fun Boolean.toTrigger(): Trigger

Converts a boolean to a Trigger object