CandidateEntity.fromJson constructor
CandidateEntity.fromJson(
- dynamic json
Implementation
CandidateEntity.fromJson(dynamic json) {
id = json['id'];
userId = json['userId'];
roleKey = json['roleKey'];
parentId = json['parentId'];
weight = json['weight'];
name = json['name'];
isDept = json['isDept'];
if (json['children'] != null) {
children = [];
json['children'].forEach((v) {
children?.add(CandidateEntity.fromJson(v));
});
}
}