@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
57 lines (56 loc) • 2.25 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.
*/
/**
* Check if a given object implements the SoSPropertyEntityUnderwritingModelsMaxPrice interface.
*/
export function instanceOfSoSPropertyEntityUnderwritingModelsMaxPrice(value) {
if (!('max_price_cap_rate_tries' in value) || value['max_price_cap_rate_tries'] === undefined)
return false;
if (!('max_price_cap_rate' in value) || value['max_price_cap_rate'] === undefined)
return false;
if (!('max_price_arv_uplift_tries' in value) || value['max_price_arv_uplift_tries'] === undefined)
return false;
if (!('max_price_arv_uplift' in value) || value['max_price_arv_uplift'] === undefined)
return false;
return true;
}
export function SoSPropertyEntityUnderwritingModelsMaxPriceFromJSON(json) {
return SoSPropertyEntityUnderwritingModelsMaxPriceFromJSONTyped(json, false);
}
export function SoSPropertyEntityUnderwritingModelsMaxPriceFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'max_price_cap_rate_tries': json['max_price_cap_rate_tries'],
'max_price_cap_rate': json['max_price_cap_rate'],
'max_price_arv_uplift_tries': json['max_price_arv_uplift_tries'],
'max_price_arv_uplift': json['max_price_arv_uplift'],
};
}
export function SoSPropertyEntityUnderwritingModelsMaxPriceToJSON(json) {
return SoSPropertyEntityUnderwritingModelsMaxPriceToJSONTyped(json, false);
}
export function SoSPropertyEntityUnderwritingModelsMaxPriceToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'max_price_cap_rate_tries': value['max_price_cap_rate_tries'],
'max_price_cap_rate': value['max_price_cap_rate'],
'max_price_arv_uplift_tries': value['max_price_arv_uplift_tries'],
'max_price_arv_uplift': value['max_price_arv_uplift'],
};
}