import 'package:json_conversion_annotation/json_conversion_annotation.dart'; /// @author NewTab @JsonConversion() class TaskLogBean { String? name; bool? isDir; List? files; TaskLogBean({this.name, this.isDir, this.files}); TaskLogBean.fromJson(Map json) { name = json['name']; isDir = json['isDir']; files = json['files'].cast(); } Map toJson() { final Map data = new Map(); data['name'] = this.name; data['isDir'] = this.isDir; data['files'] = this.files; return data; } static TaskLogBean jsonConversion(Map json) { return TaskLogBean.fromJson(json); } }