35 lines
902 B
Dart
35 lines
902 B
Dart
import 'exercise_type.dart';
|
|
|
|
class ExercisePlanDetail {
|
|
int exercisePlanDetailId;
|
|
int exercisePlanId;
|
|
int exerciseTypeId;
|
|
int serie;
|
|
int repeats;
|
|
String weightEquation;
|
|
|
|
ExerciseType exerciseType;
|
|
String change; // 1: update -1:delete 0: new
|
|
|
|
ExercisePlanDetail(int exerciseTypeId) {
|
|
this.exerciseTypeId = exerciseTypeId;
|
|
}
|
|
|
|
ExercisePlanDetail.fromJson(Map json) {
|
|
this.exercisePlanDetailId = json['exercisePlanDetailId'];
|
|
this.exercisePlanId = json['exercisePlanId'];
|
|
this.exerciseTypeId = json['exerciseTypeId'];
|
|
this.serie = json['serie'];
|
|
this.repeats = json['repeats'];
|
|
this.weightEquation = json['weightEquation'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
"exercisePlanId": exercisePlanId,
|
|
"exerciseTypeId": exerciseTypeId,
|
|
"serie": serie,
|
|
"repeats": repeats,
|
|
"weightEquation": weightEquation
|
|
};
|
|
}
|