/* 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 { RegistryEventActorFromJSON, RegistryEventActorToJSON, } from './RegistryEventActor';
import { RegistryEventRequestFromJSON, RegistryEventRequestToJSON, } from './RegistryEventRequest';
import { RegistryEventSourceFromJSON, RegistryEventSourceToJSON, } from './RegistryEventSource';
import { RegistryEventTargetFromJSON, RegistryEventTargetToJSON, } from './RegistryEventTarget';
/**
 * @export
 */
export const DockerRegistryEventActionEnum = {
    push: 'push',
    pull: 'pull',
    mount: 'mount'
};
/**
 * Check if a given object implements the DockerRegistryEvent interface.
 */
export function instanceOfDockerRegistryEvent(value) {
    return true;
}
export function DockerRegistryEventFromJSON(json) {
    return DockerRegistryEventFromJSONTyped(json, false);
}
export function DockerRegistryEventFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
        'action': json['action'] == null ? undefined : json['action'],
        'target': json['target'] == null ? undefined : RegistryEventTargetFromJSON(json['target']),
        'request': json['request'] == null ? undefined : RegistryEventRequestFromJSON(json['request']),
        'actor': json['actor'] == null ? undefined : RegistryEventActorFromJSON(json['actor']),
        'source': json['source'] == null ? undefined : RegistryEventSourceFromJSON(json['source']),
    };
}
export function DockerRegistryEventToJSON(json) {
    return DockerRegistryEventToJSONTyped(json, false);
}
export function DockerRegistryEventToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'timestamp': value['timestamp'],
        'action': value['action'],
        'target': RegistryEventTargetToJSON(value['target']),
        'request': RegistryEventRequestToJSON(value['request']),
        'actor': RegistryEventActorToJSON(value['actor']),
        'source': RegistryEventSourceToJSON(value['source']),
    };
}
//# sourceMappingURL=DockerRegistryEvent.js.map