// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'getCustomTimetableEventResponse.dart';

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

GetCustomTimetableEventResponse _$GetCustomTimetableEventResponseFromJson(
        Map<String, dynamic> json) =>
    GetCustomTimetableEventResponse(
      (json['events'] as List<dynamic>)
          .map((e) => CustomTimetableEvent.fromJson(e as Map<String, dynamic>))
          .toList(),
    )..headers = (json['headers'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(k, e as String),
      );

Map<String, dynamic> _$GetCustomTimetableEventResponseToJson(
    GetCustomTimetableEventResponse instance) {
  final val = <String, dynamic>{};

  void writeNotNull(String key, dynamic value) {
    if (value != null) {
      val[key] = value;
    }
  }

  writeNotNull('headers', instance.headers);
  val['events'] = instance.events;
  return val;
}
