// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'chapters.dart';

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

Chapters _$ChaptersFromJson(Map<String, dynamic> json) => Chapters(
      chapterId: json['chapterId'] as String?,
      courseId: json['courseId'] as String?,
      name: json['name'] as String?,
      sortorder: json['sortorder'] as int?,
      openType: json['openType'] as String?,
      openAfter: (json['openAfter'] as num?)?.toDouble(),
      createDate: json['createDate'] as String?,
      createUser: json['createUser'] as String?,
      updateDate: json['updateDate'] as String?,
      updateUser: json['updateUser'] as String?,
      listLesson: (json['listLesson'] as List<dynamic>?)
          ?.map((e) => ListLesson.fromJson(e as Map<String, dynamic>))
          .toList(),
      chapterFirstRow: json['chapterFirstRow'] as int?,
      chapterLastRow: json['chapterLastRow'] as int?,
    );

Map<String, dynamic> _$ChaptersToJson(Chapters instance) => <String, dynamic>{
      'chapterId': instance.chapterId,
      'courseId': instance.courseId,
      'name': instance.name,
      'sortorder': instance.sortorder,
      'openType': instance.openType,
      'openAfter': instance.openAfter,
      'createDate': instance.createDate,
      'createUser': instance.createUser,
      'updateDate': instance.updateDate,
      'updateUser': instance.updateUser,
      'listLesson': instance.listLesson,
      'chapterFirstRow': instance.chapterFirstRow,
      'chapterLastRow': instance.chapterLastRow,
    };
