toJson method

Map<String, Object?> toJson()

Implementation

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

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