create

open fun create(groupId: GroupId, createdBy: User): GroupCreated

Factory method to create an instance of GroupCreated.

Return

a new instance of GroupCreated

Parameters

groupId

the ID of the group

createdBy

the user who created the group