修改bug

This commit is contained in:
jyuesong
2022-01-21 17:07:42 +08:00
parent 9612802996
commit 25c98a1abf
8 changed files with 17 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ class EnvBean {
EnvBean.fromJson(Map<String, dynamic> json) {
value = json['value'];
sId = json.containsKey('_id') ? json['_id'].toString() : (json.containsKey('id') ? json['id'].toString() : "");
created = json['created'];
created = int.tryParse(json['created'].toString());
status = json['status'];
timestamp = json['timestamp'];
name = json['name'];