@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
100 lines (99 loc) • 6.37 kB
JavaScript
/* 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 { SoSPropertyEntityAttomAllEventDetailDataAddressFromJSON, SoSPropertyEntityAttomAllEventDetailDataAddressToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAddress';
import { SoSPropertyEntityAttomAllEventDetailDataSummaryFromJSON, SoSPropertyEntityAttomAllEventDetailDataSummaryToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataSummary';
import { SoSPropertyEntityAttomAllEventDetailDataAssessmentFromJSON, SoSPropertyEntityAttomAllEventDetailDataAssessmentToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAssessment';
import { SoSPropertyEntityAttomAllEventDetailDataAvmFromJSON, SoSPropertyEntityAttomAllEventDetailDataAvmToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAvm';
import { SoSPropertyEntityAttomAllEventDetailDataBuildingFromJSON, SoSPropertyEntityAttomAllEventDetailDataBuildingToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataBuilding';
import { SoSPropertyEntityAttomAllEventDetailDataSaleFromJSON, SoSPropertyEntityAttomAllEventDetailDataSaleToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataSale';
import { SoSPropertyEntityAttomAllEventDetailDataVintageFromJSON, SoSPropertyEntityAttomAllEventDetailDataVintageToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataVintage';
import { SoSPropertyEntityAttomAllEventDetailDataAreaFromJSON, SoSPropertyEntityAttomAllEventDetailDataAreaToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataArea';
import { SoSPropertyEntityAttomAllEventDetailDataIdentifierFromJSON, SoSPropertyEntityAttomAllEventDetailDataIdentifierToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataIdentifier';
import { SoSPropertyEntityAttomAllEventDetailDataLocationFromJSON, SoSPropertyEntityAttomAllEventDetailDataLocationToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataLocation';
import { SoSPropertyEntityAttomAllEventDetailDataLotFromJSON, SoSPropertyEntityAttomAllEventDetailDataLotToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataLot';
/**
* Check if a given object implements the SoSPropertyEntityAttomAllEventDetailDataProperty interface.
*/
export function instanceOfSoSPropertyEntityAttomAllEventDetailDataProperty(value) {
if (!('avm' in value) || value['avm'] === undefined)
return false;
if (!('lot' in value) || value['lot'] === undefined)
return false;
if (!('area' in value) || value['area'] === undefined)
return false;
if (!('sale' in value) || value['sale'] === undefined)
return false;
if (!('address' in value) || value['address'] === undefined)
return false;
if (!('summary' in value) || value['summary'] === undefined)
return false;
if (!('vintage' in value) || value['vintage'] === undefined)
return false;
if (!('building' in value) || value['building'] === undefined)
return false;
if (!('location' in value) || value['location'] === undefined)
return false;
if (!('utilities' in value) || value['utilities'] === undefined)
return false;
if (!('assessment' in value) || value['assessment'] === undefined)
return false;
if (!('identifier' in value) || value['identifier'] === undefined)
return false;
return true;
}
export function SoSPropertyEntityAttomAllEventDetailDataPropertyFromJSON(json) {
return SoSPropertyEntityAttomAllEventDetailDataPropertyFromJSONTyped(json, false);
}
export function SoSPropertyEntityAttomAllEventDetailDataPropertyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'avm': SoSPropertyEntityAttomAllEventDetailDataAvmFromJSON(json['avm']),
'lot': SoSPropertyEntityAttomAllEventDetailDataLotFromJSON(json['lot']),
'area': SoSPropertyEntityAttomAllEventDetailDataAreaFromJSON(json['area']),
'sale': SoSPropertyEntityAttomAllEventDetailDataSaleFromJSON(json['sale']),
'address': SoSPropertyEntityAttomAllEventDetailDataAddressFromJSON(json['address']),
'summary': SoSPropertyEntityAttomAllEventDetailDataSummaryFromJSON(json['summary']),
'vintage': SoSPropertyEntityAttomAllEventDetailDataVintageFromJSON(json['vintage']),
'building': SoSPropertyEntityAttomAllEventDetailDataBuildingFromJSON(json['building']),
'location': SoSPropertyEntityAttomAllEventDetailDataLocationFromJSON(json['location']),
'utilities': json['utilities'],
'assessment': SoSPropertyEntityAttomAllEventDetailDataAssessmentFromJSON(json['assessment']),
'identifier': SoSPropertyEntityAttomAllEventDetailDataIdentifierFromJSON(json['identifier']),
};
}
export function SoSPropertyEntityAttomAllEventDetailDataPropertyToJSON(json) {
return SoSPropertyEntityAttomAllEventDetailDataPropertyToJSONTyped(json, false);
}
export function SoSPropertyEntityAttomAllEventDetailDataPropertyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'avm': SoSPropertyEntityAttomAllEventDetailDataAvmToJSON(value['avm']),
'lot': SoSPropertyEntityAttomAllEventDetailDataLotToJSON(value['lot']),
'area': SoSPropertyEntityAttomAllEventDetailDataAreaToJSON(value['area']),
'sale': SoSPropertyEntityAttomAllEventDetailDataSaleToJSON(value['sale']),
'address': SoSPropertyEntityAttomAllEventDetailDataAddressToJSON(value['address']),
'summary': SoSPropertyEntityAttomAllEventDetailDataSummaryToJSON(value['summary']),
'vintage': SoSPropertyEntityAttomAllEventDetailDataVintageToJSON(value['vintage']),
'building': SoSPropertyEntityAttomAllEventDetailDataBuildingToJSON(value['building']),
'location': SoSPropertyEntityAttomAllEventDetailDataLocationToJSON(value['location']),
'utilities': value['utilities'],
'assessment': SoSPropertyEntityAttomAllEventDetailDataAssessmentToJSON(value['assessment']),
'identifier': SoSPropertyEntityAttomAllEventDetailDataIdentifierToJSON(value['identifier']),
};
}