add jsonSerialize to Organization and OrganizationRole

This commit is contained in:
Jonathan Treffler 2024-10-13 22:55:24 +02:00
parent 936f52c61f
commit 38b1406d40
2 changed files with 16 additions and 0 deletions

View file

@ -16,4 +16,11 @@ class Organization implements \JsonSerializable {
public function getMembersGroup(): string {
return $this->membersGroup;
}
public function jsonSerialize(): array {
return [
'id' => $this->id,
'membersGroup' => $this->membersGroup,
];
}
}

View file

@ -26,4 +26,13 @@ class OrganizationRole implements \JsonSerializable {
public function getMembersGroup(): string {
return $this->membersGroup;
}
public function jsonSerialize(): array {
return [
'id' => $this->id,
'organizationId' => $this->organizationId,
'friendlyName' => $this->friendlyName,
'membersGroup' => $this->membersGroup,
];
}
}