toJson method
Implementation
Map<String, dynamic> toJson() => {
'"type"': type == null ? null : '"${type.toString().split('.').last}"',
'"scoreFactor"': scoreFactor,
'"targetTime"': targetTime,
'"targetReps"': targetReps,
'"passCriteria"': passCriteria?.map((e) => e).toList(),
'"targetRom"': '"$targetRom"',
};