如何在Native侧构建一个ArkTS对象
=====================

1.  调用接口napi\_create\_object创建对象。
    
    _// Create object arg\_order in the native layer_
    napi\_value arg\_object;
    napi\_create\_object(env, &arg\_object);
    
2.  调用接口napi\_set\_named\_property给对象属性赋值。
    
    napi\_value testNum, testString;
    _// Set the property testNum and assign a value of 123 to the arg\_order object created above_
    napi\_create\_int32(env, 123, &testNum);
    napi\_set\_named\_property(env, arg\_object, "testNum", testNum);
    _// Set the property testString and assign 'Pure' to the arg\_order object created above_
    napi\_create\_string\_utf8(env, "Pure", NAPI\_AUTO\_LENGTH, &testString);
    napi\_set\_named\_property(env, arg\_object, "testString", testString);