// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'getHolidaysResponse.dart';

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

GetHolidaysResponse _$GetHolidaysResponseFromJson(Map<String, dynamic> json) =>
    GetHolidaysResponse(
      (json['result'] as List<dynamic>)
          .map((e) =>
              GetHolidaysResponseObject.fromJson(e as Map<String, dynamic>))
          .toSet(),
    )..headers = (json['headers'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(k, e as String),
      );

Map<String, dynamic> _$GetHolidaysResponseToJson(GetHolidaysResponse instance) {
  final val = <String, dynamic>{};

  void writeNotNull(String key, dynamic value) {
    if (value != null) {
      val[key] = value;
    }
  }

  writeNotNull('headers', instance.headers);
  val['result'] = instance.result.map((e) => e.toJson()).toList();
  return val;
}

GetHolidaysResponseObject _$GetHolidaysResponseObjectFromJson(
        Map<String, dynamic> json) =>
    GetHolidaysResponseObject(
      json['id'] as int,
      json['name'] as String,
      json['longName'] as String,
      json['startDate'] as int,
      json['endDate'] as int,
    );

Map<String, dynamic> _$GetHolidaysResponseObjectToJson(
        GetHolidaysResponseObject instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'longName': instance.longName,
      'startDate': instance.startDate,
      'endDate': instance.endDate,
    };
