/* 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 { AttachmentMetadataFromJSON, AttachmentMetadataToJSON, } from './AttachmentMetadata';
import { VerificationStateFromJSON, VerificationStateToJSON, } from './VerificationState';
/**
 * Check if a given object implements the VerificationSubmission interface.
 */
export function instanceOfVerificationSubmission(value) {
    return true;
}
export function VerificationSubmissionFromJSON(json) {
    return VerificationSubmissionFromJSONTyped(json, false);
}
export function VerificationSubmissionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'firstName': json['firstName'] == null ? undefined : json['firstName'],
        'lastName': json['lastName'] == null ? undefined : json['lastName'],
        'emails': json['emails'] == null ? undefined : json['emails'],
        'notificationEmail': json['notificationEmail'] == null ? undefined : json['notificationEmail'],
        'location': json['location'] == null ? undefined : json['location'],
        'company': json['company'] == null ? undefined : json['company'],
        'orcid': json['orcid'] == null ? undefined : json['orcid'],
        'stateHistory': json['stateHistory'] == null ? undefined : (json['stateHistory'].map(VerificationStateFromJSON)),
        'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(AttachmentMetadataFromJSON)),
    };
}
export function VerificationSubmissionToJSON(json) {
    return VerificationSubmissionToJSONTyped(json, false);
}
export function VerificationSubmissionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'createdOn': value['createdOn'],
        'createdBy': value['createdBy'],
        'firstName': value['firstName'],
        'lastName': value['lastName'],
        'emails': value['emails'],
        'notificationEmail': value['notificationEmail'],
        'location': value['location'],
        'company': value['company'],
        'orcid': value['orcid'],
        'stateHistory': value['stateHistory'] == null ? undefined : (value['stateHistory'].map(VerificationStateToJSON)),
        'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(AttachmentMetadataToJSON)),
    };
}
//# sourceMappingURL=VerificationSubmission.js.map