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? log; String? remark; DependencyBean( {this.sId, this.created, this.status, this.type, this.timestamp, this.name, this.log, this.remark}); DependencyBean.fromJson(Map json) { sId = json['_id']; created = int.tryParse(json['created'].toString()); status = json['status']; type = json['type']; timestamp = json['timestamp'].toString(); name = json['name']; log = json['log'].cast(); remark = json['remark']; } Map toJson() { final Map data = new Map(); 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 json) { return DependencyBean.fromJson(json); } }