// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from derivings.djinni

#import "DBRecordWithDerivings+Private.h"
#import "DJIMarshal+Private.h"
#include <cassert>

namespace djinni_generated {

auto RecordWithDerivings::toCpp(ObjcType obj) -> CppType
{
    assert(obj);
    return {::djinni::I32::toCpp(obj.key1),
            ::djinni::String::toCpp(obj.key2)};
}

auto RecordWithDerivings::fromCpp(const CppType& cpp) -> ObjcType
{
    return [[DBRecordWithDerivings alloc] initWithKey1:(::djinni::I32::fromCpp(cpp.key1))
                                                  key2:(::djinni::String::fromCpp(cpp.key2))];
}

}  // namespace djinni_generated
