toJson method
Implementation
Map<String, dynamic> toJson() {
final action = this.action;
final name = this.name;
final trigger = this.trigger;
final description = this.description;
return {
'Action': action,
'Name': name,
'Trigger': trigger,
if (description != null) 'Description': description,
};
}