toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = Map<String, dynamic>();
  if (this.department != null) {
    data['department'] = this.department!.toJson();
  }
  if (this.member != null) {
    data['member'] = this.member!.toJson();
  }
  return data;
}