/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * @export
 */
export const TemplateSetValueConcreteTypeEnum = {
    org_sagebionetworks_repo_model_grid_update_TemplateSetValue: 'org.sagebionetworks.repo.model.grid.update.TemplateSetValue'
};
/**
 * @export
 */
export const TemplateSetValueOnMatchFailureEnum = {
    SET_NULL: 'SET_NULL',
    SET_UNDEFINED: 'SET_UNDEFINED',
    SKIP_UPDATE: 'SKIP_UPDATE'
};
/**
 * @export
 */
export const TemplateSetValueOnMissingValueEnum = {
    SET_NULL: 'SET_NULL',
    SET_UNDEFINED: 'SET_UNDEFINED',
    SKIP_UPDATE: 'SKIP_UPDATE',
    USE_EMPTY_STRING: 'USE_EMPTY_STRING'
};
/**
 * Check if a given object implements the TemplateSetValue interface.
 */
export function instanceOfTemplateSetValue(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(TemplateSetValueConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function TemplateSetValueFromJSON(json) {
    return TemplateSetValueFromJSONTyped(json, false);
}
export function TemplateSetValueFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'columnName': json['columnName'] == null ? undefined : json['columnName'],
        'sourceTemplate': json['sourceTemplate'] == null ? undefined : json['sourceTemplate'],
        'pattern': json['pattern'] == null ? undefined : json['pattern'],
        'replacement': json['replacement'] == null ? undefined : json['replacement'],
        'onMatchFailure': json['onMatchFailure'] == null ? undefined : json['onMatchFailure'],
        'onMissingValue': json['onMissingValue'] == null ? undefined : json['onMissingValue'],
    };
}
export function TemplateSetValueToJSON(json) {
    return TemplateSetValueToJSONTyped(json, false);
}
export function TemplateSetValueToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'columnName': value['columnName'],
        'sourceTemplate': value['sourceTemplate'],
        'pattern': value['pattern'],
        'replacement': value['replacement'],
        'onMatchFailure': value['onMatchFailure'],
        'onMissingValue': value['onMissingValue'],
    };
}
//# sourceMappingURL=TemplateSetValue.js.map