/* 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 { IdentityProviderFromJSON, IdentityProviderToJSON, } from './IdentityProvider';
/**
 * Check if a given object implements the NewIntegrationTestUser interface.
 */
export function instanceOfNewIntegrationTestUser(value) {
    return true;
}
export function NewIntegrationTestUserFromJSON(json) {
    return NewIntegrationTestUserFromJSONTyped(json, false);
}
export function NewIntegrationTestUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'username': json['username'] == null ? undefined : json['username'],
        'email': json['email'] == null ? undefined : json['email'],
        'password': json['password'] == null ? undefined : json['password'],
        'tou': json['tou'] == null ? undefined : json['tou'],
        'validatedUser': json['validatedUser'] == null ? undefined : json['validatedUser'],
        'identityProvider': json['identityProvider'] == null ? undefined : IdentityProviderFromJSON(json['identityProvider']),
    };
}
export function NewIntegrationTestUserToJSON(json) {
    return NewIntegrationTestUserToJSONTyped(json, false);
}
export function NewIntegrationTestUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'username': value['username'],
        'email': value['email'],
        'password': value['password'],
        'tou': value['tou'],
        'validatedUser': value['validatedUser'],
        'identityProvider': IdentityProviderToJSON(value['identityProvider']),
    };
}
//# sourceMappingURL=NewIntegrationTestUser.js.map