// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'getBreakersResponse.dart';

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

GetBreakersResponse _$GetBreakersResponseFromJson(Map<String, dynamic> json) =>
    GetBreakersResponse(
      GetBreakersReponseObject.fromJson(json['global'] as Map<String, dynamic>),
      (json['regional'] as Map<String, dynamic>).map(
        (k, e) => MapEntry(
            k, GetBreakersReponseObject.fromJson(e as Map<String, dynamic>)),
      ),
    );

Map<String, dynamic> _$GetBreakersResponseToJson(
        GetBreakersResponse instance) =>
    <String, dynamic>{
      'global': instance.global.toJson(),
      'regional': instance.regional.map((k, e) => MapEntry(k, e.toJson())),
    };

GetBreakersReponseObject _$GetBreakersReponseObjectFromJson(
        Map<String, dynamic> json) =>
    GetBreakersReponseObject(
      (json['areas'] as List<dynamic>)
          .map((e) => $enumDecode(_$BreakerAreaEnumMap, e))
          .toList(),
      json['message'] as String,
    );

Map<String, dynamic> _$GetBreakersReponseObjectToJson(
        GetBreakersReponseObject instance) =>
    <String, dynamic>{
      'areas': instance.areas.map((e) => _$BreakerAreaEnumMap[e]!).toList(),
      'message': instance.message,
    };

const _$BreakerAreaEnumMap = {
  BreakerArea.global: 'GLOBAL',
  BreakerArea.timetable: 'TIMETABLE',
  BreakerArea.talk: 'TALK',
  BreakerArea.files: 'FILES',
  BreakerArea.more: 'MORE',
};
