toJsonDictionary method
Converts the trigger object to a JSON map.
Implementation
Map<String, dynamic> toJsonDictionary() {
Map<String, dynamic> dictionary = {
'method': _stringFromTriggersMethod(method),
};
dictionary['triggers'] = triggers.map((e) => e.toJsonDictionary()).toList();
return dictionary;
}