// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'user_benchmark_section.model.dart';

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

UserBenchmarkSection _$UserBenchmarkSectionFromJson(Map<String, dynamic> json) {
  return UserBenchmarkSection()
    ..id = json['id'] as int
    ..user_benchmark_id = json['user_benchmark_id'] as int
    ..training_workout_section_id = json['training_workout_section_id'] as int
    ..time = json['time'] as String
    ..completed = json['completed'] as int
    ..rounds = json['rounds'] as int
    ..reps = json['reps'] as int
    ..custom_score = json['custom_score'] as int
    ..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)
    ..score_section = (json['score_section'] as num)?.toDouble()
    ..user_benchmark_lines = (json['user_benchmark_lines'] as List)
        ?.map((e) => e == null
            ? null
            : UserBenchmarkLine.fromJson(e as Map<String, dynamic>))
        ?.toList();
}

Map<String, dynamic> _$UserBenchmarkSectionToJson(
        UserBenchmarkSection instance) =>
    <String, dynamic>{
      'id': instance.id,
      'user_benchmark_id': instance.user_benchmark_id,
      'training_workout_section_id': instance.training_workout_section_id,
      'time': instance.time,
      'completed': instance.completed,
      'rounds': instance.rounds,
      'reps': instance.reps,
      'custom_score': instance.custom_score,
      'created_at': instance.created_at?.toIso8601String(),
      'updated_at': instance.updated_at?.toIso8601String(),
      'score_section': instance.score_section,
      'user_benchmark_lines': instance.user_benchmark_lines
    };
