toJson method

Map<String, Object?> toJson()

Implementation

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

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