toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = Map<String, dynamic>();
  if (this.group != null) {
    data['group'] = this.group!.toJson();
  }
  if (this.opUser != null) {
    data['opUser'] = this.opUser!.toJson();
  }
  if (this.groupOwnerUser != null) {
    data['groupOwnerUser'] = this.groupOwnerUser!.toJson();
  }
  if (this.memberList != null) {
    data['memberList'] = this.memberList!.map((v) => v.toJson()).toList();
  }
  return data;
}