SMKitExerciseData.fromJson constructor
SMKitExerciseData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SMKitExerciseData.fromJson(Map<String, dynamic> json) {
return SMKitExerciseData(
userData: SMKitUserData.fromJson(json['userData']),
activityType: json['activityType'],
sessionId: json['sessionId'],
startTime: json['startTime'],
endTime: json['endTime'],
totalScore: json['totalScore'],
totalScoreSegmented: json['totalScoreSegmented'],
performanceScore: json['performanceScore'],
performanceScoreSegmented: json['performanceScoreSegmented'],
techniqueScore: json['techniqueScore'],
techniqueScoreSegmented: json['techniqueScoreSegmented'],
repsPerformed: json['repsPerformed'],
repsPerformedPerfect: json['repsPerformedPerfect'],
timeInPosition: json['timeInPosition'],
timeInPositionPerfect: json['timeInPositionPerfect'],
peakRangeOfMotion: json['peakRangeOfMotionScore'],
feedbacks: json['feedback'],
exerciseInfo: SMExerciseInfo.fromJson(json),
);
}