toJsonDictionary method
Converts the trigger to a JSON dictionary. @returns The JSON representation of the trigger.
Implementation
Map<String, dynamic> toJsonDictionary() {
return {
'id': id,
'type': MBTrigger._stringFromTriggerType(triggerType),
};
}