toJson method

Map<String, dynamic> toJson()

Converts the workout alert to a JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type.toString().split('.').last,
  };
}