toStruct method

Implementation

JSObjectRef.JSStaticFunctionStruct toStruct() {
  return JSObjectRef.JSStaticFunctionStruct(
    name: name.toNativeUtf8(),
    callAsFunction: callAsFunction ?? nullptr,
    attributes: jSPropertyAttributesToCEnum(attributes),
  );
}