UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

65 lines (64 loc) 2.46 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 SoSPropertyEntityAttomAllEventDetailDataAvmCondition interface. */ export function instanceOfSoSPropertyEntityAttomAllEventDetailDataAvmCondition(value) { if (!('avmgoodlow' in value) || value['avmgoodlow'] === undefined) return false; if (!('avmpoorlow' in value) || value['avmpoorlow'] === undefined) return false; if (!('avmgoodhigh' in value) || value['avmgoodhigh'] === undefined) return false; if (!('avmpoorhigh' in value) || value['avmpoorhigh'] === undefined) return false; if (!('avmexcellentlow' in value) || value['avmexcellentlow'] === undefined) return false; if (!('avmexcellenthigh' in value) || value['avmexcellenthigh'] === undefined) return false; return true; } export function SoSPropertyEntityAttomAllEventDetailDataAvmConditionFromJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataAvmConditionFromJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataAvmConditionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'avmgoodlow': json['avmgoodlow'], 'avmpoorlow': json['avmpoorlow'], 'avmgoodhigh': json['avmgoodhigh'], 'avmpoorhigh': json['avmpoorhigh'], 'avmexcellentlow': json['avmexcellentlow'], 'avmexcellenthigh': json['avmexcellenthigh'], }; } export function SoSPropertyEntityAttomAllEventDetailDataAvmConditionToJSON(json) { return SoSPropertyEntityAttomAllEventDetailDataAvmConditionToJSONTyped(json, false); } export function SoSPropertyEntityAttomAllEventDetailDataAvmConditionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'avmgoodlow': value['avmgoodlow'], 'avmpoorlow': value['avmpoorlow'], 'avmgoodhigh': value['avmgoodhigh'], 'avmpoorhigh': value['avmpoorhigh'], 'avmexcellentlow': value['avmexcellentlow'], 'avmexcellenthigh': value['avmexcellenthigh'], }; }