toJson method
Implementation
Map<String, dynamic> toJson() =>
{
'parent': this.parentIds,
'id': this.id,
'name': this.name,
'duplicable' : this.duplicable,
'event': this.event.toJson(),
'action': this.action.toJson()
};