/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.
 */

import { mapValues } from '../runtime';
import type { SyncObjectModelEnum } from './SyncObjectModelEnum';
import {
    SyncObjectModelEnumFromJSON,
    SyncObjectModelEnumFromJSONTyped,
    SyncObjectModelEnumToJSON,
    SyncObjectModelEnumToJSONTyped,
} from './SyncObjectModelEnum';

/**
 * Sync object serializer
 * @export
 * @interface SyncObjectRequest
 */
export interface SyncObjectRequest {
    /**
     * 
     * @type {SyncObjectModelEnum}
     * @memberof SyncObjectRequest
     */
    syncObjectModel: SyncObjectModelEnum;
    /**
     * 
     * @type {string}
     * @memberof SyncObjectRequest
     */
    syncObjectId: string;
    /**
     * 
     * @type {boolean}
     * @memberof SyncObjectRequest
     */
    overrideDryRun?: boolean;
}



/**
 * Check if a given object implements the SyncObjectRequest interface.
 */
export function instanceOfSyncObjectRequest(value: object): value is SyncObjectRequest {
    if (!('syncObjectModel' in value) || value['syncObjectModel'] === undefined) return false;
    if (!('syncObjectId' in value) || value['syncObjectId'] === undefined) return false;
    return true;
}

export function SyncObjectRequestFromJSON(json: any): SyncObjectRequest {
    return SyncObjectRequestFromJSONTyped(json, false);
}

export function SyncObjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncObjectRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'syncObjectModel': SyncObjectModelEnumFromJSON(json['sync_object_model']),
        'syncObjectId': json['sync_object_id'],
        'overrideDryRun': json['override_dry_run'] == null ? undefined : json['override_dry_run'],
    };
}

export function SyncObjectRequestToJSON(json: any): SyncObjectRequest {
    return SyncObjectRequestToJSONTyped(json, false);
}

export function SyncObjectRequestToJSONTyped(value?: SyncObjectRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'sync_object_model': SyncObjectModelEnumToJSON(value['syncObjectModel']),
        'sync_object_id': value['syncObjectId'],
        'override_dry_run': value['overrideDryRun'],
    };
}

