// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'listFilesResponse.dart';

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

ListFilesResponse _$ListFilesResponseFromJson(Map<String, dynamic> json) =>
    ListFilesResponse(
      (json['files'] as List<dynamic>)
          .map((e) => CacheableFile.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> _$ListFilesResponseToJson(ListFilesResponse instance) {
  final val = <String, dynamic>{};

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

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