/* 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 { TermsOfServiceRequirementsFromJSON, TermsOfServiceRequirementsToJSON, } from './TermsOfServiceRequirements';
/**
 * Check if a given object implements the TermsOfServiceInfo interface.
 */
export function instanceOfTermsOfServiceInfo(value) {
    return true;
}
export function TermsOfServiceInfoFromJSON(json) {
    return TermsOfServiceInfoFromJSONTyped(json, false);
}
export function TermsOfServiceInfoFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'termsOfServiceUrl': json['termsOfServiceUrl'] == null ? undefined : json['termsOfServiceUrl'],
        'latestTermsOfServiceVersion': json['latestTermsOfServiceVersion'] == null ? undefined : json['latestTermsOfServiceVersion'],
        'currentRequirements': json['currentRequirements'] == null ? undefined : TermsOfServiceRequirementsFromJSON(json['currentRequirements']),
    };
}
export function TermsOfServiceInfoToJSON(json) {
    return TermsOfServiceInfoToJSONTyped(json, false);
}
export function TermsOfServiceInfoToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'termsOfServiceUrl': value['termsOfServiceUrl'],
        'latestTermsOfServiceVersion': value['latestTermsOfServiceVersion'],
        'currentRequirements': TermsOfServiceRequirementsToJSON(value['currentRequirements']),
    };
}
//# sourceMappingURL=TermsOfServiceInfo.js.map