// GENERATED CODE - DO NOT MODIFY BY HAND part of 'resource.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Resource _$ResourceFromJson(Map json) => Resource( name: json['name'] as String, size: json['size'] as int, range: json['range'] as bool, rootDir: json['rootDir'] as String, files: (json['files'] as List) .map((e) => FileInfo.fromJson(e as Map)) .toList(), hash: json['hash'] as String, ); Map _$ResourceToJson(Resource instance) => { 'name': instance.name, 'size': instance.size, 'range': instance.range, 'rootDir': instance.rootDir, 'files': instance.files.map((e) => e.toJson()).toList(), 'hash': instance.hash, }; FileInfo _$FileInfoFromJson(Map json) => FileInfo( path: json['path'] as String, name: json['name'] as String, size: json['size'] as int, ); Map _$FileInfoToJson(FileInfo instance) => { 'path': instance.path, 'name': instance.name, 'size': instance.size, };