UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

55 lines (54 loc) 1.66 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 SoSSourceEntityBase interface. */ export function instanceOfSoSSourceEntityBase(value) { if (!('sid' in value) || value['sid'] === undefined) return false; if (!('source' in value) || value['source'] === undefined) return false; if (!('createdAt' in value) || value['createdAt'] === undefined) return false; return true; } export function SoSSourceEntityBaseFromJSON(json) { return SoSSourceEntityBaseFromJSONTyped(json, false); } export function SoSSourceEntityBaseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'sid': json['sid'], 'source': json['source'], 'createdAt': json['createdAt'], 'hubspotDealIds': json['hubspotDealIds'] == null ? undefined : json['hubspotDealIds'], }; } export function SoSSourceEntityBaseToJSON(json) { return SoSSourceEntityBaseToJSONTyped(json, false); } export function SoSSourceEntityBaseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'sid': value['sid'], 'source': value['source'], 'createdAt': value['createdAt'], 'hubspotDealIds': value['hubspotDealIds'], }; }