// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'training_workout_section.model.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

TrainingWorkoutSection _$TrainingWorkoutSectionFromJson(
    Map<String, dynamic> json) {
  return TrainingWorkoutSection()
    ..id = json['id'] as int
    ..training_workout_id = json['training_workout_id'] as int
    ..description = json['description'] as String
    ..seconds = json['seconds'] as int
    ..rounds = json['rounds'] as String
    ..type = json['type'] as String
    ..custom_score = json['custom_score'] as int
    ..custom_score_explanation = json['custom_score_explanation'] as String
    ..created_at = json['created_at'] == null
        ? null
        : DateTime.parse(json['created_at'] as String)
    ..updated_at = json['updated_at'] == null
        ? null
        : DateTime.parse(json['updated_at'] as String)
    ..lines = (json['lines'] as List)
        ?.map((e) => e == null
            ? null
            : TrainingWorkoutLine.fromJson(e as Map<String, dynamic>))
        ?.toList()
    ..scoring = Map<String, bool>.from(json['scoring']);
}

Map<String, dynamic> _$TrainingWorkoutSectionToJson(
        TrainingWorkoutSection instance) =>
    <String, dynamic>{
      'id': instance.id,
      'training_workout_id': instance.training_workout_id,
      'description': instance.description,
      'seconds': instance.seconds,
      'rounds': instance.rounds,
      'type': instance.type,
      'custom_score': instance.custom_score,
      'custom_score_explanation': instance.custom_score_explanation,
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
      'lines': instance.lines,
      'scoring': instance.scoring
    };
