UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

65 lines (64 loc) 3.5 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 { SoSPropertyEntityAttomAllEventDetailDataAssessmentAssessedFromJSON, SoSPropertyEntityAttomAllEventDetailDataAssessmentAssessedToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAssessmentAssessed'; import { SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxFromJSON, SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAssessmentTax'; import { SoSPropertyEntityAttomAllEventDetailDataAssessmentCalculationsFromJSON, SoSPropertyEntityAttomAllEventDetailDataAssessmentCalculationsToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAssessmentCalculations'; import { SoSPropertyEntityAttomAllEventDetailDataAssessmentMarketFromJSON, SoSPropertyEntityAttomAllEventDetailDataAssessmentMarketToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAssessmentMarket'; /** * Check if a given object implements the SoSPropertyEntityAttomAllEventDetailDataAssessment interface. */ export function instanceOfSoSPropertyEntityAttomAllEventDetailDataAssessment(value) { if (!('tax' in value) || value['tax'] === undefined) return false; if (!('market' in value) || value['market'] === undefined) return false; if (!('assessed' in value) || value['assessed'] === undefined) return false; if (!('appraised' in value) || value['appraised'] === undefined) return false; if (!('calculations' in value) || value['calculations'] === undefined) return false; return true; } export function SoSPropertyEntityAttomAllEventDetailDataAssessmentFromJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataAssessmentFromJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataAssessmentFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'tax': SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxFromJSON(json['tax']), 'market': SoSPropertyEntityAttomAllEventDetailDataAssessmentMarketFromJSON(json['market']), 'assessed': SoSPropertyEntityAttomAllEventDetailDataAssessmentAssessedFromJSON(json['assessed']), 'appraised': json['appraised'], 'calculations': SoSPropertyEntityAttomAllEventDetailDataAssessmentCalculationsFromJSON(json['calculations']), }; } export function SoSPropertyEntityAttomAllEventDetailDataAssessmentToJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataAssessmentToJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataAssessmentToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'tax': SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxToJSON(value['tax']), 'market': SoSPropertyEntityAttomAllEventDetailDataAssessmentMarketToJSON(value['market']), 'assessed': SoSPropertyEntityAttomAllEventDetailDataAssessmentAssessedToJSON(value['assessed']), 'appraised': value['appraised'], 'calculations': SoSPropertyEntityAttomAllEventDetailDataAssessmentCalculationsToJSON(value['calculations']), }; }