/* 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 { FormSubmissionStatusFromJSON, FormSubmissionStatusToJSON, } from './FormSubmissionStatus';
/**
 * Check if a given object implements the FormData interface.
 */
export function instanceOfFormData(value) {
    return true;
}
export function FormDataFromJSON(json) {
    return FormDataFromJSONTyped(json, false);
}
export function FormDataFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'formDataId': json['formDataId'] == null ? undefined : json['formDataId'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'groupId': json['groupId'] == null ? undefined : json['groupId'],
        'name': json['name'] == null ? undefined : json['name'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'dataFileHandleId': json['dataFileHandleId'] == null ? undefined : json['dataFileHandleId'],
        'submissionStatus': json['submissionStatus'] == null ? undefined : FormSubmissionStatusFromJSON(json['submissionStatus']),
    };
}
export function FormDataToJSON(json) {
    return FormDataToJSONTyped(json, false);
}
export function FormDataToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'formDataId': value['formDataId'],
        'etag': value['etag'],
        'groupId': value['groupId'],
        'name': value['name'],
        'createdBy': value['createdBy'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'dataFileHandleId': value['dataFileHandleId'],
        'submissionStatus': FormSubmissionStatusToJSON(value['submissionStatus']),
    };
}
//# sourceMappingURL=FormData.js.map