WorkoutSet.fromJson constructor
Implementation
factory WorkoutSet.fromJson(Map<String, dynamic> json) => WorkoutSet(
targetReps: json['targetReps'] as int,
targetWeight: (json['targetWeight'] as num?)?.toDouble(),
rest: json['rest'] == null ? null : Duration(seconds: json['rest'] as int),
);