mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
支持上传脚本
This commit is contained in:
13
lib/module/env/env_bean.dart
vendored
13
lib/module/env/env_bean.dart
vendored
@@ -12,7 +12,14 @@ class EnvBean {
|
||||
String? name;
|
||||
String? remarks;
|
||||
|
||||
EnvBean({this.value, this.sId, this.created, this.status, this.timestamp, this.name, this.remarks});
|
||||
EnvBean(
|
||||
{this.value,
|
||||
this.sId,
|
||||
this.created,
|
||||
this.status,
|
||||
this.timestamp,
|
||||
this.name,
|
||||
this.remarks});
|
||||
|
||||
get nId => _id;
|
||||
|
||||
@@ -20,7 +27,9 @@ class EnvBean {
|
||||
value = json['value'];
|
||||
id = json['id'];
|
||||
_id = json['_id'];
|
||||
sId = json.containsKey('_id') ? json['_id'].toString() : (json.containsKey('id') ? json['id'].toString() : "");
|
||||
sId = json.containsKey('_id')
|
||||
? json['_id'].toString()
|
||||
: (json.containsKey('id') ? json['id'].toString() : "");
|
||||
created = int.tryParse(json['created'].toString());
|
||||
status = json['status'];
|
||||
timestamp = json['timestamp'];
|
||||
|
||||
Reference in New Issue
Block a user