mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
flutter 3.7 compatibility responsive view beautiful progress bar select file in treeview downlading and downloaded page
40 lines
1.3 KiB
Dart
40 lines
1.3 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'resource.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Resource _$ResourceFromJson(Map<String, dynamic> 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<dynamic>)
|
|
.map((e) => FileInfo.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
hash: json['hash'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$ResourceToJson(Resource instance) => <String, dynamic>{
|
|
'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<String, dynamic> json) => FileInfo(
|
|
path: json['path'] as String,
|
|
name: json['name'] as String,
|
|
size: json['size'] as int,
|
|
);
|
|
|
|
Map<String, dynamic> _$FileInfoToJson(FileInfo instance) => <String, dynamic>{
|
|
'path': instance.path,
|
|
'name': instance.name,
|
|
'size': instance.size,
|
|
};
|