toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var user = this.user;
  var group = this.group;

  final json = <String, Object?>{};
  json[r'user'] = user.map((i) => i.toJson()).toList();
  json[r'group'] = group.map((i) => i.toJson()).toList();
  return json;
}