/* 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 MembershipRequest interface.
 */
export function instanceOfMembershipRequest(value) {
    return true;
}
export function MembershipRequestFromJSON(json) {
    return MembershipRequestFromJSONTyped(json, false);
}
export function MembershipRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'teamId': json['teamId'] == null ? undefined : json['teamId'],
        'userId': json['userId'] == null ? undefined : json['userId'],
        'message': json['message'] == null ? undefined : json['message'],
        'expiresOn': json['expiresOn'] == null ? undefined : json['expiresOn'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
    };
}
export function MembershipRequestToJSON(json) {
    return MembershipRequestToJSONTyped(json, false);
}
export function MembershipRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'teamId': value['teamId'],
        'userId': value['userId'],
        'message': value['message'],
        'expiresOn': value['expiresOn'],
        'createdOn': value['createdOn'],
        'createdBy': value['createdBy'],
    };
}
//# sourceMappingURL=MembershipRequest.js.map