"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfGoogleWorkspaceProviderGroup = instanceOfGoogleWorkspaceProviderGroup;
exports.GoogleWorkspaceProviderGroupFromJSON = GoogleWorkspaceProviderGroupFromJSON;
exports.GoogleWorkspaceProviderGroupFromJSONTyped = GoogleWorkspaceProviderGroupFromJSONTyped;
exports.GoogleWorkspaceProviderGroupToJSON = GoogleWorkspaceProviderGroupToJSON;
exports.GoogleWorkspaceProviderGroupToJSONTyped = GoogleWorkspaceProviderGroupToJSONTyped;
const PartialGroup_1 = require("./PartialGroup");
/**
 * Check if a given object implements the GoogleWorkspaceProviderGroup interface.
 */
function instanceOfGoogleWorkspaceProviderGroup(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('googleId' in value) || value['googleId'] === undefined)
        return false;
    if (!('group' in value) || value['group'] === undefined)
        return false;
    if (!('groupObj' in value) || value['groupObj'] === undefined)
        return false;
    if (!('provider' in value) || value['provider'] === undefined)
        return false;
    if (!('attributes' in value) || value['attributes'] === undefined)
        return false;
    return true;
}
function GoogleWorkspaceProviderGroupFromJSON(json) {
    return GoogleWorkspaceProviderGroupFromJSONTyped(json, false);
}
function GoogleWorkspaceProviderGroupFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'googleId': json['google_id'],
        'group': json['group'],
        'groupObj': (0, PartialGroup_1.PartialGroupFromJSON)(json['group_obj']),
        'provider': json['provider'],
        'attributes': json['attributes'],
    };
}
function GoogleWorkspaceProviderGroupToJSON(json) {
    return GoogleWorkspaceProviderGroupToJSONTyped(json, false);
}
function GoogleWorkspaceProviderGroupToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'google_id': value['googleId'],
        'group': value['group'],
        'provider': value['provider'],
    };
}
//# sourceMappingURL=GoogleWorkspaceProviderGroup.js.map