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:
51
lib/module/others/dependencies/dependency_bean.dart
Normal file
51
lib/module/others/dependencies/dependency_bean.dart
Normal file
@@ -0,0 +1,51 @@
|
||||
import 'package:json_conversion_annotation/json_conversion_annotation.dart';
|
||||
|
||||
/// @author NewTab
|
||||
@JsonConversion()
|
||||
class DependencyBean {
|
||||
String? sId;
|
||||
int? created;
|
||||
int? status;
|
||||
int? type;
|
||||
String? timestamp;
|
||||
String? name;
|
||||
List<String>? log;
|
||||
String? remark;
|
||||
|
||||
DependencyBean(
|
||||
{this.sId,
|
||||
this.created,
|
||||
this.status,
|
||||
this.type,
|
||||
this.timestamp,
|
||||
this.name,
|
||||
this.log,
|
||||
this.remark});
|
||||
|
||||
DependencyBean.fromJson(Map<String, dynamic> json) {
|
||||
sId = json['_id'];
|
||||
created = json['created'];
|
||||
status = json['status'];
|
||||
type = json['type'];
|
||||
timestamp = json['timestamp'];
|
||||
name = json['name'];
|
||||
log = json['log'].cast<String>();
|
||||
remark = json['remark'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['_id'] = this.sId;
|
||||
data['created'] = this.created;
|
||||
data['status'] = this.status;
|
||||
data['type'] = this.type;
|
||||
data['timestamp'] = this.timestamp;
|
||||
data['name'] = this.name;
|
||||
data['log'] = this.log;
|
||||
data['remark'] = this.remark;
|
||||
return data;
|
||||
}
|
||||
static DependencyBean jsonConversion(Map<String, dynamic> json) {
|
||||
return DependencyBean.fromJson(json);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user