@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
57 lines (56 loc) • 1.85 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.
*/
/**
* Check if a given object implements the AirtableCommentSubscriptionEntityBase interface.
*/
export function instanceOfAirtableCommentSubscriptionEntityBase(value) {
if (!('userId' in value) || value['userId'] === undefined)
return false;
if (!('tableId' in value) || value['tableId'] === undefined)
return false;
if (!('recordId' in value) || value['recordId'] === undefined)
return false;
if (!('createdAt' in value) || value['createdAt'] === undefined)
return false;
return true;
}
export function AirtableCommentSubscriptionEntityBaseFromJSON(json) {
return AirtableCommentSubscriptionEntityBaseFromJSONTyped(json, false);
}
export function AirtableCommentSubscriptionEntityBaseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'userId': json['userId'],
'tableId': json['tableId'],
'recordId': json['recordId'],
'createdAt': json['createdAt'],
};
}
export function AirtableCommentSubscriptionEntityBaseToJSON(json) {
return AirtableCommentSubscriptionEntityBaseToJSONTyped(json, false);
}
export function AirtableCommentSubscriptionEntityBaseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'userId': value['userId'],
'tableId': value['tableId'],
'recordId': value['recordId'],
'createdAt': value['createdAt'],
};
}