WorkoutSet.fromJson constructor

WorkoutSet.fromJson(
  1. Map<String, dynamic> json
)

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),
);