/* 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 V2WikiPage interface.
 */
export function instanceOfV2WikiPage(value) {
    return true;
}
export function V2WikiPageFromJSON(json) {
    return V2WikiPageFromJSONTyped(json, false);
}
export function V2WikiPageFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
        'parentWikiId': json['parentWikiId'] == null ? undefined : json['parentWikiId'],
        'title': json['title'] == null ? undefined : json['title'],
        'markdownFileHandleId': json['markdownFileHandleId'] == null ? undefined : json['markdownFileHandleId'],
        'attachmentFileHandleIds': json['attachmentFileHandleIds'] == null ? undefined : json['attachmentFileHandleIds'],
    };
}
export function V2WikiPageToJSON(json) {
    return V2WikiPageToJSONTyped(json, false);
}
export function V2WikiPageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'etag': value['etag'],
        'createdOn': value['createdOn'],
        'createdBy': value['createdBy'],
        'modifiedOn': value['modifiedOn'],
        'modifiedBy': value['modifiedBy'],
        'parentWikiId': value['parentWikiId'],
        'title': value['title'],
        'markdownFileHandleId': value['markdownFileHandleId'],
        'attachmentFileHandleIds': value['attachmentFileHandleIds'],
    };
}
//# sourceMappingURL=V2WikiPage.js.map