/* 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 { FieldDescriptionFromJSON, FieldDescriptionToJSON, } from './FieldDescription';
/**
 * Check if a given object implements the FieldMigrationSpec interface.
 */
export function instanceOfFieldMigrationSpec(value) {
    return true;
}
export function FieldMigrationSpecFromJSON(json) {
    return FieldMigrationSpecFromJSONTyped(json, false);
}
export function FieldMigrationSpecFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'source': json['source'] == null ? undefined : FieldDescriptionFromJSON(json['source']),
        'destination': json['destination'] == null ? undefined : FieldDescriptionFromJSON(json['destination']),
    };
}
export function FieldMigrationSpecToJSON(json) {
    return FieldMigrationSpecToJSONTyped(json, false);
}
export function FieldMigrationSpecToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'source': FieldDescriptionToJSON(value['source']),
        'destination': FieldDescriptionToJSON(value['destination']),
    };
}
//# sourceMappingURL=FieldMigrationSpec.js.map