toJson method

Map<String, Object?> toJson()

Implementation

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

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