public static function createFromJSON($className, $json, $isError=false) {
        if(!$className) {
            throw new Exception('Invalid className:'.$className);
        }
        $model = new $className();
        self::fillFromJSON($model, $json, $isError);
        return $model;
    }