// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'timetable_get_subjects_response.dart';

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

McSubject _$McSubjectFromJson(Map<String, dynamic> json) => McSubject(
  id: (json['id'] as num).toInt(),
  shortName: json['shortName'] as String,
  longName: json['longName'] as String,
  color: json['color'] as String?,
);

Map<String, dynamic> _$McSubjectToJson(McSubject instance) => <String, dynamic>{
  'id': instance.id,
  'shortName': instance.shortName,
  'longName': instance.longName,
  'color': instance.color,
};

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