UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

65 lines (64 loc) 2.68 kB
/* 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 { V4AirtableListCommentsAttachmentDtoFromJSON, V4AirtableListCommentsAttachmentDtoToJSON, } from './V4AirtableListCommentsAttachmentDto'; import { V4AirtableListCommentsAuthorDtoFromJSON, V4AirtableListCommentsAuthorDtoToJSON, } from './V4AirtableListCommentsAuthorDto'; /** * Check if a given object implements the V4AirtableListCommentsCommentDto interface. */ export function instanceOfV4AirtableListCommentsCommentDto(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('text' in value) || value['text'] === undefined) return false; if (!('author' in value) || value['author'] === undefined) return false; if (!('createdTime' in value) || value['createdTime'] === undefined) return false; return true; } export function V4AirtableListCommentsCommentDtoFromJSON(json) { return V4AirtableListCommentsCommentDtoFromJSONTyped(json, false); } export function V4AirtableListCommentsCommentDtoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'id': json['id'], 'text': json['text'], 'author': V4AirtableListCommentsAuthorDtoFromJSON(json['author']), 'createdTime': json['createdTime'], 'lastModifiedTime': json['lastModifiedTime'] == null ? undefined : json['lastModifiedTime'], 'mentioned': json['mentioned'] == null ? undefined : json['mentioned'], 'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(V4AirtableListCommentsAttachmentDtoFromJSON)), }; } export function V4AirtableListCommentsCommentDtoToJSON(json) { return V4AirtableListCommentsCommentDtoToJSONTyped(json, false); } export function V4AirtableListCommentsCommentDtoToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'text': value['text'], 'author': V4AirtableListCommentsAuthorDtoToJSON(value['author']), 'createdTime': value['createdTime'], 'lastModifiedTime': value['lastModifiedTime'], 'mentioned': value['mentioned'], 'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(V4AirtableListCommentsAttachmentDtoToJSON)), }; }