UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

70 lines (69 loc) 2.99 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 { SoSPropertyEntityAttomAllEventDetailDataSaleAmountFromJSON, SoSPropertyEntityAttomAllEventDetailDataSaleAmountToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataSaleAmount'; /** * Check if a given object implements the SoSPropertyEntityAttomAllEventDetailDataSale interface. */ export function instanceOfSoSPropertyEntityAttomAllEventDetailDataSale(value) { if (!('amount' in value) || value['amount'] === undefined) return false; if (!('calculation' in value) || value['calculation'] === undefined) return false; if (!('interfamily' in value) || value['interfamily'] === undefined) return false; if (!('saleTransDate' in value) || value['saleTransDate'] === undefined) return false; if (!('salesearchdate' in value) || value['salesearchdate'] === undefined) return false; if (!('cashormortgagepurchase' in value) || value['cashormortgagepurchase'] === undefined) return false; if (!('resaleornewconstruction' in value) || value['resaleornewconstruction'] === undefined) return false; return true; } export function SoSPropertyEntityAttomAllEventDetailDataSaleFromJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataSaleFromJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataSaleFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'amount': SoSPropertyEntityAttomAllEventDetailDataSaleAmountFromJSON(json['amount']), 'calculation': json['calculation'], 'interfamily': json['interfamily'], 'saleTransDate': json['saleTransDate'], 'salesearchdate': json['salesearchdate'], 'cashormortgagepurchase': json['cashormortgagepurchase'], 'resaleornewconstruction': json['resaleornewconstruction'], }; } export function SoSPropertyEntityAttomAllEventDetailDataSaleToJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataSaleToJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataSaleToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'amount': SoSPropertyEntityAttomAllEventDetailDataSaleAmountToJSON(value['amount']), 'calculation': value['calculation'], 'interfamily': value['interfamily'], 'saleTransDate': value['saleTransDate'], 'salesearchdate': value['salesearchdate'], 'cashormortgagepurchase': value['cashormortgagepurchase'], 'resaleornewconstruction': value['resaleornewconstruction'], }; }