/* 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 TeamMembershipStatus interface.
 */
export function instanceOfTeamMembershipStatus(value) {
    return true;
}
export function TeamMembershipStatusFromJSON(json) {
    return TeamMembershipStatusFromJSONTyped(json, false);
}
export function TeamMembershipStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'teamId': json['teamId'] == null ? undefined : json['teamId'],
        'userId': json['userId'] == null ? undefined : json['userId'],
        'isMember': json['isMember'] == null ? undefined : json['isMember'],
        'hasOpenInvitation': json['hasOpenInvitation'] == null ? undefined : json['hasOpenInvitation'],
        'hasOpenRequest': json['hasOpenRequest'] == null ? undefined : json['hasOpenRequest'],
        'canJoin': json['canJoin'] == null ? undefined : json['canJoin'],
        'membershipApprovalRequired': json['membershipApprovalRequired'] == null ? undefined : json['membershipApprovalRequired'],
        'hasUnmetAccessRequirement': json['hasUnmetAccessRequirement'] == null ? undefined : json['hasUnmetAccessRequirement'],
        'canSendEmail': json['canSendEmail'] == null ? undefined : json['canSendEmail'],
    };
}
export function TeamMembershipStatusToJSON(json) {
    return TeamMembershipStatusToJSONTyped(json, false);
}
export function TeamMembershipStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'teamId': value['teamId'],
        'userId': value['userId'],
        'isMember': value['isMember'],
        'hasOpenInvitation': value['hasOpenInvitation'],
        'hasOpenRequest': value['hasOpenRequest'],
        'canJoin': value['canJoin'],
        'membershipApprovalRequired': value['membershipApprovalRequired'],
        'hasUnmetAccessRequirement': value['hasUnmetAccessRequirement'],
        'canSendEmail': value['canSendEmail'],
    };
}
//# sourceMappingURL=TeamMembershipStatus.js.map