username = $username; } public function jsonSerialize() { return [ "username" => $this->username ]; } }