// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'timetable_get_teachers_response.dart';

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

McTimetableTeacherElement _$McTimetableTeacherElementFromJson(
  Map<String, dynamic> json,
) => McTimetableTeacherElement(
  id: (json['id'] as num).toInt(),
  shortName: json['shortName'] as String,
  displayName: json['displayName'] as String,
);

Map<String, dynamic> _$McTimetableTeacherElementToJson(
  McTimetableTeacherElement instance,
) => <String, dynamic>{
  'id': instance.id,
  'shortName': instance.shortName,
  'displayName': instance.displayName,
};

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