/* 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.
 */
import { FieldMigrationSpecFromJSON, FieldMigrationSpecToJSON, } from './FieldMigrationSpec';
/**
 * Check if a given object implements the EntityTypeMigrationSpec interface.
 */
export function instanceOfEntityTypeMigrationSpec(value) {
    return true;
}
export function EntityTypeMigrationSpecFromJSON(json) {
    return EntityTypeMigrationSpecFromJSONTyped(json, false);
}
export function EntityTypeMigrationSpecFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'entityType': json['entityType'] == null ? undefined : json['entityType'],
        'fields': json['fields'] == null ? undefined : (json['fields'].map(FieldMigrationSpecFromJSON)),
    };
}
export function EntityTypeMigrationSpecToJSON(json) {
    return EntityTypeMigrationSpecToJSONTyped(json, false);
}
export function EntityTypeMigrationSpecToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'entityType': value['entityType'],
        'fields': value['fields'] == null ? undefined : (value['fields'].map(FieldMigrationSpecToJSON)),
    };
}
//# sourceMappingURL=EntityTypeMigrationSpec.js.map