/* tslint:disable */
/* eslint-disable */
/**
 * Hexiosec Transfer API
 * API description for Hexiosec Transfer  ## Testing Requests  Endpoints that require authentication will use your session cookie from the main application if an API key is not provided. This is fine for testing GET requests, however POST/DELETE requests will require a CSRF token when using a session cookie. It is not possible to provide a CSRF token from this page, and so an API key must be used.
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: support@hexiosec.com
 *
 * 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 CreateTenantRequest interface.
 */
export function instanceOfCreateTenantRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('displayName' in value) || value['displayName'] === undefined)
        return false;
    if (!('hostname' in value) || value['hostname'] === undefined)
        return false;
    if (!('tcRequired' in value) || value['tcRequired'] === undefined)
        return false;
    if (!('notes' in value) || value['notes'] === undefined)
        return false;
    if (!('enabled' in value) || value['enabled'] === undefined)
        return false;
    return true;
}
export function CreateTenantRequestFromJSON(json) {
    return CreateTenantRequestFromJSONTyped(json, false);
}
export function CreateTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        name: json['name'],
        displayName: json['display_name'],
        hostname: json['hostname'],
        tcRequired: json['tc_required'],
        notes: json['notes'],
        enabled: json['enabled'],
    };
}
export function CreateTenantRequestToJSON(json) {
    return CreateTenantRequestToJSONTyped(json, false);
}
export function CreateTenantRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        name: value['name'],
        display_name: value['displayName'],
        hostname: value['hostname'],
        tc_required: value['tcRequired'],
        notes: value['notes'],
        enabled: value['enabled'],
    };
}
