UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

61 lines (60 loc) 1.95 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. */ /** * Check if a given object implements the V4AirtableListCommentsAttachmentDto interface. */ export function instanceOfV4AirtableListCommentsAttachmentDto(value) { if (!('fuid' in value) || value['fuid'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('size' in value) || value['size'] === undefined) return false; if (!('mimeType' in value) || value['mimeType'] === undefined) return false; if (!('signedUrl' in value) || value['signedUrl'] === undefined) return false; return true; } export function V4AirtableListCommentsAttachmentDtoFromJSON(json) { return V4AirtableListCommentsAttachmentDtoFromJSONTyped(json, false); } export function V4AirtableListCommentsAttachmentDtoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'fuid': json['fuid'], 'name': json['name'], 'size': json['size'], 'mimeType': json['mimeType'], 'signedUrl': json['signedUrl'], }; } export function V4AirtableListCommentsAttachmentDtoToJSON(json) { return V4AirtableListCommentsAttachmentDtoToJSONTyped(json, false); } export function V4AirtableListCommentsAttachmentDtoToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'fuid': value['fuid'], 'name': value['name'], 'size': value['size'], 'mimeType': value['mimeType'], 'signedUrl': value['signedUrl'], }; }