toJson method
Implementation
@override
Map<String, dynamic> toJson() {
return {
'ACTION': Heplers.camelToSnake(action.name).toUpperCase(),
'TRIGGER': trigger.toString(),
'DESCRIPTION': description,
'DURATION': duration,
'REPEAT': repeat,
'ATTACH': attach,
};
}