UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

65 lines (64 loc) 3.36 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 { SoSPropertyEntityAttomAllEventDetailDataAvmChangeFromJSON, SoSPropertyEntityAttomAllEventDetailDataAvmChangeToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAvmChange'; import { SoSPropertyEntityAttomAllEventDetailDataAvmConditionFromJSON, SoSPropertyEntityAttomAllEventDetailDataAvmConditionToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAvmCondition'; import { SoSPropertyEntityAttomAllEventDetailDataAvmCalculationsFromJSON, SoSPropertyEntityAttomAllEventDetailDataAvmCalculationsToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAvmCalculations'; import { SoSPropertyEntityAttomAllEventDetailDataAvmAmountFromJSON, SoSPropertyEntityAttomAllEventDetailDataAvmAmountToJSON, } from './SoSPropertyEntityAttomAllEventDetailDataAvmAmount'; /** * Check if a given object implements the SoSPropertyEntityAttomAllEventDetailDataAvm interface. */ export function instanceOfSoSPropertyEntityAttomAllEventDetailDataAvm(value) { if (!('amount' in value) || value['amount'] === undefined) return false; if (!('AVMChange' in value) || value['AVMChange'] === undefined) return false; if (!('condition' in value) || value['condition'] === undefined) return false; if (!('eventDate' in value) || value['eventDate'] === undefined) return false; if (!('calculations' in value) || value['calculations'] === undefined) return false; return true; } export function SoSPropertyEntityAttomAllEventDetailDataAvmFromJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataAvmFromJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataAvmFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'amount': SoSPropertyEntityAttomAllEventDetailDataAvmAmountFromJSON(json['amount']), 'AVMChange': SoSPropertyEntityAttomAllEventDetailDataAvmChangeFromJSON(json['AVMChange']), 'condition': SoSPropertyEntityAttomAllEventDetailDataAvmConditionFromJSON(json['condition']), 'eventDate': json['eventDate'], 'calculations': SoSPropertyEntityAttomAllEventDetailDataAvmCalculationsFromJSON(json['calculations']), }; } export function SoSPropertyEntityAttomAllEventDetailDataAvmToJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataAvmToJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataAvmToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'amount': SoSPropertyEntityAttomAllEventDetailDataAvmAmountToJSON(value['amount']), 'AVMChange': SoSPropertyEntityAttomAllEventDetailDataAvmChangeToJSON(value['AVMChange']), 'condition': SoSPropertyEntityAttomAllEventDetailDataAvmConditionToJSON(value['condition']), 'eventDate': value['eventDate'], 'calculations': SoSPropertyEntityAttomAllEventDetailDataAvmCalculationsToJSON(value['calculations']), }; }