// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'timetable_get_classes_response.dart';

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

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

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

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