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

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

namespace djinni_generated {

auto ClientReturnedRecord::toCpp(ObjcType obj) -> CppType
{
    assert(obj);
    int64_t record_id = ::djinni::I64::toCpp(obj.recordId);
    std::string content = ::djinni::String::toCpp(obj.content);
    return ::ClientReturnedRecord(
        record_id,
        content);
}

auto ClientReturnedRecord::fromCpp(const CppType& cpp) -> ObjcType
{
    int64_t recordId = ::djinni::I64::fromCpp(cpp.record_id);
    NSString *content = ::djinni::String::fromCpp(cpp.content);
    return [[DBClientReturnedRecord alloc]
        initWithRecordId:recordId
        content:content];
}

}  // namespace djinni_generated
