// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'training_workout_line.model.dart';

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

TrainingWorkoutLine _$TrainingWorkoutLineFromJson(Map<String, dynamic> json) {
  return TrainingWorkoutLine()
    ..id = json['id'] as int
    ..training_workout_section_id = json['training_workout_section_id'] as int
    ..description = json['description'] as String
    ..exercise_id = json['exercise_id'] as int
    ..exercise = json['exercise'] == null
        ? null
        : Exercise.fromJson(json['exercise'] as Map<String, dynamic>)
    ..seconds = json['seconds'] as int
    ..reps = json['reps'] as String
    ..maleVal = json['maleVal'] as String
    ..femaleVal = json['femaleVal'] as String
    ..units = json['units'] as String
    ..exercise_scaled_id = json['exercise_scaled_id'] as int
    ..exercise_scaled = json['exercise_scaled'] == null
        ? null
        : Exercise.fromJson(json['exercise_scaled'] as Map<String, dynamic>)
    ..seconds_scaled = json['seconds_scaled'] as int
    ..reps_scaled = json['reps_scaled'] as String
    ..maleVal_scaled = json['maleVal_scaled'] as String
    ..femaleVal_scaled = json['femaleVal_scaled'] as String
    ..units_scaled = json['units_scaled'] 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);
}

Map<String, dynamic> _$TrainingWorkoutLineToJson(
        TrainingWorkoutLine instance) =>
    <String, dynamic>{
      'id': instance.id,
      'training_workout_section_id': instance.training_workout_section_id,
      'description': instance.description,
      'exercise_id': instance.exercise_id,
      'exercise': instance.exercise,
      'seconds': instance.seconds,
      'reps': instance.reps,
      'maleVal': instance.maleVal,
      'femaleVal': instance.femaleVal,
      'units': instance.units,
      'exercise_scaled_id': instance.exercise_scaled_id,
      'exercise_scaled': instance.exercise_scaled,
      'seconds_scaled': instance.seconds_scaled,
      'reps_scaled': instance.reps_scaled,
      'maleVal_scaled': instance.maleVal_scaled,
      'femaleVal_scaled': instance.femaleVal_scaled,
      'units_scaled': instance.units_scaled,
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
    };
