import 'package:app_hit_a_wod/src/models/training_workout_line.model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'training_workout_section.model.g.dart';

@JsonSerializable()
class TrainingWorkoutSection {

  TrainingWorkoutSection();

  factory TrainingWorkoutSection.fromJson(Map<String, dynamic> json) => _$TrainingWorkoutSectionFromJson(json);
  Map<String, dynamic> toJson() => _$TrainingWorkoutSectionToJson(this);

  int id;
  int training_workout_id;
  String description;
  int seconds;
  String rounds;
  String type;
  int custom_score;
  String custom_score_explanation;
  DateTime created_at;
  DateTime updated_at;
  List<TrainingWorkoutLine> lines;
  Map<String,bool> scoring;

}