/* 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 { UserGroupHeaderFromJSON, UserGroupHeaderToJSON, } from './UserGroupHeader';
/**
 * Check if a given object implements the TeamMember interface.
 */
export function instanceOfTeamMember(value) {
    return true;
}
export function TeamMemberFromJSON(json) {
    return TeamMemberFromJSONTyped(json, false);
}
export function TeamMemberFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'teamId': json['teamId'] == null ? undefined : json['teamId'],
        'member': json['member'] == null ? undefined : UserGroupHeaderFromJSON(json['member']),
        'isAdmin': json['isAdmin'] == null ? undefined : json['isAdmin'],
    };
}
export function TeamMemberToJSON(json) {
    return TeamMemberToJSONTyped(json, false);
}
export function TeamMemberToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'teamId': value['teamId'],
        'member': UserGroupHeaderToJSON(value['member']),
        'isAdmin': value['isAdmin'],
    };
}
//# sourceMappingURL=TeamMember.js.map