UserInDept.fromJson constructor

UserInDept.fromJson(
  1. Map<String, dynamic> json
)

Implementation

UserInDept.fromJson(Map<String, dynamic> json) {
  department = json['department'] != null
      ? DeptInfo.fromJson(json['department'])
      : null;
  member =
      json['member'] != null ? DeptMemberInfo.fromJson(json['member']) : null;
}