text: // AUTOGENERATED FILE - DO NOT MODIFY!
  // This file generated by Djinni from libunity.djinni
  
  #include "NativeAddressRecord.hpp"  // my header
  #include "Marshal.hpp"
  
  namespace djinni_generated {
  
  NativeAddressRecord::NativeAddressRecord() = default;
  
  NativeAddressRecord::~NativeAddressRecord() = default;
  
  auto NativeAddressRecord::fromCpp(JNIEnv* jniEnv, const CppType& c) -> ::djinni::LocalRef<JniType> {
      const auto& data = ::djinni::JniClass<NativeAddressRecord>::get();
      auto r = ::djinni::LocalRef<JniType>{jniEnv->NewObject(data.clazz.get(), data.jconstructor,
                                                             ::djinni::get(::djinni::String::fromCpp(jniEnv, c.address)),
                                                             ::djinni::get(::djinni::String::fromCpp(jniEnv, c.purpose)),
                                                             ::djinni::get(::djinni::String::fromCpp(jniEnv, c.name)))};
      ::djinni::jniExceptionCheck(jniEnv);
      return r;
  }
  
  auto NativeAddressRecord::toCpp(JNIEnv* jniEnv, JniType j) -> CppType {
      ::djinni::JniLocalScope jscope(jniEnv, 4);
      assert(j != nullptr);
      const auto& data = ::djinni::JniClass<NativeAddressRecord>::get();
      return {::djinni::String::toCpp(jniEnv, (jstring)jniEnv->GetObjectField(j, data.field_mAddress)),
              ::djinni::String::toCpp(jniEnv, (jstring)jniEnv->GetObjectField(j, data.field_mPurpose)),
              ::djinni::String::toCpp(jniEnv, (jstring)jniEnv->GetObjectField(j, data.field_mName))};
  }
  
  }  // namespace djinni_generated
  