src/Jaspersoft/Dto/DTOObject.php
public static function jsonField($plural = false)
    {
        $field = explode('\\', get_called_class());
        $field = lcfirst(end($field));
        return $plural ? $field . "s" : $field;
    }
public static function jsonField($plural = false)
    {
        $field = explode('\\', get_called_class());
        $field = lcfirst(end($field));
        return $plural ? $field . "s" : $field;
    }
public static function jsonField ( $ plural = false ) { $ field = explode ( '\\' , get_called_class ( ) ) ; $ field = lcfirst ( end ( $ field ) ) ; return $ plural ? $ field . "s" : $ field ; }
Get the name of this class if it were a key field in a JSON representation

@param boolean $plural Suffix response with an s?
@return string
Get the name of this class if it were a key field in a JSON representation