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

#import "DBRecordWithDerivings+Private.h"
#import "DJIDate.h"
#import "DJIMarshal+Private.h"
#import <Foundation/Foundation.h>
#include <cassert>
#include <utility>
#include <vector>

namespace djinni_generated {

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

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

}  // namespace djinni_generated
