toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

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