dart format
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
import '../../../../api_response.dart';
|
||||
import '../../webdav_api.dart';
|
||||
import 'download_file_params.dart';
|
||||
|
||||
@@ -10,8 +10,13 @@ class DownloadFileParams extends ApiParams {
|
||||
String localTargetPath;
|
||||
String filename;
|
||||
|
||||
DownloadFileParams(this.webdavSourcePath, this.localTargetPath, this.filename);
|
||||
DownloadFileParams(
|
||||
this.webdavSourcePath,
|
||||
this.localTargetPath,
|
||||
this.filename,
|
||||
);
|
||||
|
||||
factory DownloadFileParams.fromJson(Map<String, dynamic> json) => _$DownloadFileParamsFromJson(json);
|
||||
factory DownloadFileParams.fromJson(Map<String, dynamic> json) =>
|
||||
_$DownloadFileParamsFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$DownloadFileParamsToJson(this);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'download_file_response.g.dart';
|
||||
@@ -9,6 +8,7 @@ class DownloadFileResponse {
|
||||
|
||||
DownloadFileResponse(this.path);
|
||||
|
||||
factory DownloadFileResponse.fromJson(Map<String, dynamic> json) => _$DownloadFileResponseFromJson(json);
|
||||
factory DownloadFileResponse.fromJson(Map<String, dynamic> json) =>
|
||||
_$DownloadFileResponseFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$DownloadFileResponseToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user