"use strict";
// This file was auto-generated by Fern from our API Definition.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.RemoteFieldClass = void 0;
const core = __importStar(require("../../../../core"));
const FieldFormatEnum_1 = require("./FieldFormatEnum");
const FieldTypeEnum_1 = require("./FieldTypeEnum");
const ItemSchema_1 = require("./ItemSchema");
const RemoteFieldClassFieldChoicesItem_1 = require("./RemoteFieldClassFieldChoicesItem");
exports.RemoteFieldClass = core.serialization.object({
    id: core.serialization.string().optional(),
    displayName: core.serialization.property("display_name", core.serialization.string().optional()),
    remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string().optional()),
    description: core.serialization.string().optional(),
    isCustom: core.serialization.property("is_custom", core.serialization.boolean().optional()),
    isCommonModelField: core.serialization.property("is_common_model_field", core.serialization.boolean().optional()),
    isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()),
    fieldType: core.serialization.property("field_type", FieldTypeEnum_1.FieldTypeEnum.optional()),
    fieldFormat: core.serialization.property("field_format", FieldFormatEnum_1.FieldFormatEnum.optional()),
    fieldChoices: core.serialization.property("field_choices", core.serialization.list(RemoteFieldClassFieldChoicesItem_1.RemoteFieldClassFieldChoicesItem).optional()),
    itemSchema: core.serialization.property("item_schema", ItemSchema_1.ItemSchema.optional()),
});
