toJson method

Map<String, dynamic> toJson()

Converts the workout step to a JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'goal': goal.toJson(),
    'alert': alert?.toJson(),
    'displayName': displayName,
  };
}