/* 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 RealmPrincipal interface.
 */
export function instanceOfRealmPrincipal(value) {
    return true;
}
export function RealmPrincipalFromJSON(json) {
    return RealmPrincipalFromJSONTyped(json, false);
}
export function RealmPrincipalFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'realmId': json['realmId'] == null ? undefined : json['realmId'],
        'anonymousUser': json['anonymousUser'] == null ? undefined : json['anonymousUser'],
        'publicGroup': json['publicGroup'] == null ? undefined : json['publicGroup'],
        'authenticatedUsers': json['authenticatedUsers'] == null ? undefined : json['authenticatedUsers'],
        'administrativeGroup': json['administrativeGroup'] == null ? undefined : json['administrativeGroup'],
    };
}
export function RealmPrincipalToJSON(json) {
    return RealmPrincipalToJSONTyped(json, false);
}
export function RealmPrincipalToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'realmId': value['realmId'],
        'anonymousUser': value['anonymousUser'],
        'publicGroup': value['publicGroup'],
        'authenticatedUsers': value['authenticatedUsers'],
        'administrativeGroup': value['administrativeGroup'],
    };
}
//# sourceMappingURL=RealmPrincipal.js.map