"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSyncObjectRequest = instanceOfSyncObjectRequest;
exports.SyncObjectRequestFromJSON = SyncObjectRequestFromJSON;
exports.SyncObjectRequestFromJSONTyped = SyncObjectRequestFromJSONTyped;
exports.SyncObjectRequestToJSON = SyncObjectRequestToJSON;
exports.SyncObjectRequestToJSONTyped = SyncObjectRequestToJSONTyped;
const SyncObjectModelEnum_1 = require("./SyncObjectModelEnum");
/**
 * Check if a given object implements the SyncObjectRequest interface.
 */
function instanceOfSyncObjectRequest(value) {
    if (!('syncObjectModel' in value) || value['syncObjectModel'] === undefined)
        return false;
    if (!('syncObjectId' in value) || value['syncObjectId'] === undefined)
        return false;
    return true;
}
function SyncObjectRequestFromJSON(json) {
    return SyncObjectRequestFromJSONTyped(json, false);
}
function SyncObjectRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'syncObjectModel': (0, SyncObjectModelEnum_1.SyncObjectModelEnumFromJSON)(json['sync_object_model']),
        'syncObjectId': json['sync_object_id'],
        'overrideDryRun': json['override_dry_run'] == null ? undefined : json['override_dry_run'],
    };
}
function SyncObjectRequestToJSON(json) {
    return SyncObjectRequestToJSONTyped(json, false);
}
function SyncObjectRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'sync_object_model': (0, SyncObjectModelEnum_1.SyncObjectModelEnumToJSON)(value['syncObjectModel']),
        'sync_object_id': value['syncObjectId'],
        'override_dry_run': value['overrideDryRun'],
    };
}
//# sourceMappingURL=SyncObjectRequest.js.map