// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'timetable_get_timegrid_response.dart';

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

McTimegridUnit _$McTimegridUnitFromJson(Map<String, dynamic> json) =>
    McTimegridUnit(
      dayOfWeek: _dayFromJson(json['dayOfWeek'] as String),
      label: json['label'] as String,
      startTime: McTimegridUnit._timeFromJson(json['startTime'] as String),
      endTime: McTimegridUnit._timeFromJson(json['endTime'] as String),
    );

Map<String, dynamic> _$McTimegridUnitToJson(McTimegridUnit instance) =>
    <String, dynamic>{
      'dayOfWeek': _dayToJson(instance.dayOfWeek),
      'label': instance.label,
      'startTime': McTimegridUnit._timeToJson(instance.startTime),
      'endTime': McTimegridUnit._timeToJson(instance.endTime),
    };

TimetableGetTimegridResponse _$TimetableGetTimegridResponseFromJson(
  Map<String, dynamic> json,
) =>
    TimetableGetTimegridResponse(
        result: (json['result'] as List<dynamic>)
            .map((e) => McTimegridUnit.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> _$TimetableGetTimegridResponseToJson(
  TimetableGetTimegridResponse instance,
) => <String, dynamic>{
  'headers': ?instance.headers,
  'result': instance.result.map((e) => e.toJson()).toList(),
};
