// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'timetable_get_rooms_response.dart';

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

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

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

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