Upgrade
This commit is contained in:
parent
f0b28099bf
commit
f7416290fb
@ -41,5 +41,5 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'io.openim:core-sdk:2.0.9.6@aar'
|
implementation 'io.openim:core-sdk:2.0.9.10@aar'
|
||||||
}
|
}
|
@ -187,8 +187,13 @@ class UserInDept {
|
|||||||
class DeptMemberAndSubDept {
|
class DeptMemberAndSubDept {
|
||||||
List<DeptInfo>? departmentList;
|
List<DeptInfo>? departmentList;
|
||||||
List<DeptMemberInfo>? departmentMemberList;
|
List<DeptMemberInfo>? departmentMemberList;
|
||||||
|
List<DeptInfo>? parentDepartmentList;
|
||||||
|
|
||||||
DeptMemberAndSubDept({this.departmentList, this.departmentMemberList});
|
DeptMemberAndSubDept({
|
||||||
|
this.departmentList,
|
||||||
|
this.departmentMemberList,
|
||||||
|
this.parentDepartmentList,
|
||||||
|
});
|
||||||
|
|
||||||
DeptMemberAndSubDept.fromJson(Map<String, dynamic> json) {
|
DeptMemberAndSubDept.fromJson(Map<String, dynamic> json) {
|
||||||
if (json['departmentList'] != null) {
|
if (json['departmentList'] != null) {
|
||||||
@ -203,6 +208,12 @@ class DeptMemberAndSubDept {
|
|||||||
departmentMemberList!.add(DeptMemberInfo.fromJson(v));
|
departmentMemberList!.add(DeptMemberInfo.fromJson(v));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (json['parentDepartmentList'] != null) {
|
||||||
|
parentDepartmentList = <DeptInfo>[];
|
||||||
|
json['parentDepartmentList'].forEach((v) {
|
||||||
|
parentDepartmentList!.add(DeptInfo.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
@ -215,6 +226,10 @@ class DeptMemberAndSubDept {
|
|||||||
data['departmentMemberList'] =
|
data['departmentMemberList'] =
|
||||||
this.departmentMemberList!.map((v) => v.toJson()).toList();
|
this.departmentMemberList!.map((v) => v.toJson()).toList();
|
||||||
}
|
}
|
||||||
|
if (this.parentDepartmentList != null) {
|
||||||
|
data['parentDepartmentList'] =
|
||||||
|
this.parentDepartmentList!.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user