/* 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.
 */
/**
 * Check if a given object implements the EntityHeader interface.
 */
export function instanceOfEntityHeader(value) {
    return true;
}
export function EntityHeaderFromJSON(json) {
    return EntityHeaderFromJSONTyped(json, false);
}
export function EntityHeaderFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'id': json['id'] == null ? undefined : json['id'],
        'type': json['type'] == null ? undefined : json['type'],
        'versionNumber': json['versionNumber'] == null ? undefined : json['versionNumber'],
        'versionLabel': json['versionLabel'] == null ? undefined : json['versionLabel'],
        'isLatestVersion': json['isLatestVersion'] == null ? undefined : json['isLatestVersion'],
        'benefactorId': json['benefactorId'] == null ? undefined : json['benefactorId'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
    };
}
export function EntityHeaderToJSON(json) {
    return EntityHeaderToJSONTyped(json, false);
}
export function EntityHeaderToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'id': value['id'],
        'type': value['type'],
        'versionNumber': value['versionNumber'],
        'versionLabel': value['versionLabel'],
        'isLatestVersion': value['isLatestVersion'],
        'benefactorId': value['benefactorId'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'createdBy': value['createdBy'],
        'modifiedBy': value['modifiedBy'],
    };
}
//# sourceMappingURL=EntityHeader.js.map