class WhoamiResponse extends CommonCommandResponse<WhoamiResponse> implements WithEntity<WhoamiResponse> {

    public static WhoamiResponse of(final UserInformation userInformation, final DittoHeaders dittoHeaders) {
        final JsonObject userInformationJson = checkNotNull(userInformation, "userInformation").toJson();
        return new WhoamiResponse(userInformationJson, dittoHeaders);
    }

    private  WhoamiResponse(final JsonObject userInformation, final DittoHeaders dittoHeaders);

}