/* 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 { MessageStatusFromJSON, MessageStatusToJSON, } from './MessageStatus';
import { MessageToUserFromJSON, MessageToUserToJSON, } from './MessageToUser';
/**
 * Check if a given object implements the MessageBundle interface.
 */
export function instanceOfMessageBundle(value) {
    return true;
}
export function MessageBundleFromJSON(json) {
    return MessageBundleFromJSONTyped(json, false);
}
export function MessageBundleFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'message': json['message'] == null ? undefined : MessageToUserFromJSON(json['message']),
        'status': json['status'] == null ? undefined : MessageStatusFromJSON(json['status']),
    };
}
export function MessageBundleToJSON(json) {
    return MessageBundleToJSONTyped(json, false);
}
export function MessageBundleToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'message': MessageToUserToJSON(value['message']),
        'status': MessageStatusToJSON(value['status']),
    };
}
//# sourceMappingURL=MessageBundle.js.map