public static function toCamelCase($str, $firstInLowerCase = false)
    {
        $str = str_replace(" ", "", ucwords(str_replace("_", " ", $str)));
        return $firstInLowerCase ? lcfirst($str) : $str;
    }