/* 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 TotpSecret interface.
 */
export function instanceOfTotpSecret(value) {
    return true;
}
export function TotpSecretFromJSON(json) {
    return TotpSecretFromJSONTyped(json, false);
}
export function TotpSecretFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'secretId': json['secretId'] == null ? undefined : json['secretId'],
        'secret': json['secret'] == null ? undefined : json['secret'],
        'alg': json['alg'] == null ? undefined : json['alg'],
        'digits': json['digits'] == null ? undefined : json['digits'],
        'period': json['period'] == null ? undefined : json['period'],
        'username': json['username'] == null ? undefined : json['username'],
    };
}
export function TotpSecretToJSON(json) {
    return TotpSecretToJSONTyped(json, false);
}
export function TotpSecretToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'secretId': value['secretId'],
        'secret': value['secret'],
        'alg': value['alg'],
        'digits': value['digits'],
        'period': value['period'],
        'username': value['username'],
    };
}
//# sourceMappingURL=TotpSecret.js.map