@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
54 lines (53 loc) • 2.04 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* API v4
* Swagger documentation for API v4
*
* The version of the OpenAPI document: 4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AirtableCommentNotificationEntityTypeFromJSON, AirtableCommentNotificationEntityTypeToJSON, } from './AirtableCommentNotificationEntityType';
/**
* Check if a given object implements the V4AirtableCommentNotificationsCreateNotificationBodyDto interface.
*/
export function instanceOfV4AirtableCommentNotificationsCreateNotificationBodyDto(value) {
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('commentId' in value) || value['commentId'] === undefined)
return false;
if (!('read' in value) || value['read'] === undefined)
return false;
return true;
}
export function V4AirtableCommentNotificationsCreateNotificationBodyDtoFromJSON(json) {
return V4AirtableCommentNotificationsCreateNotificationBodyDtoFromJSONTyped(json, false);
}
export function V4AirtableCommentNotificationsCreateNotificationBodyDtoFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'type': AirtableCommentNotificationEntityTypeFromJSON(json['type']),
'commentId': json['commentId'],
'read': json['read'],
};
}
export function V4AirtableCommentNotificationsCreateNotificationBodyDtoToJSON(json) {
return V4AirtableCommentNotificationsCreateNotificationBodyDtoToJSONTyped(json, false);
}
export function V4AirtableCommentNotificationsCreateNotificationBodyDtoToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': AirtableCommentNotificationEntityTypeToJSON(value['type']),
'commentId': value['commentId'],
'read': value['read'],
};
}