mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
add login log
This commit is contained in:
29
lib/module/others/task_log/task_log_bean.dart
Normal file
29
lib/module/others/task_log/task_log_bean.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:json_conversion_annotation/json_conversion_annotation.dart';
|
||||
|
||||
/// @author NewTab
|
||||
@JsonConversion()
|
||||
class TaskLogBean {
|
||||
String? name;
|
||||
bool? isDir;
|
||||
List<String>? files;
|
||||
|
||||
TaskLogBean({this.name, this.isDir, this.files});
|
||||
|
||||
TaskLogBean.fromJson(Map<String, dynamic> json) {
|
||||
name = json['name'];
|
||||
isDir = json['isDir'];
|
||||
files = json['files'].cast<String>();
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['name'] = this.name;
|
||||
data['isDir'] = this.isDir;
|
||||
data['files'] = this.files;
|
||||
return data;
|
||||
}
|
||||
|
||||
static TaskLogBean jsonConversion(Map<String, dynamic> json) {
|
||||
return TaskLogBean.fromJson(json);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user