@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
59 lines (58 loc) • 2.71 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 V4MarketsUpdateMarketBodyDto interface.
*/
export function instanceOfV4MarketsUpdateMarketBodyDto(value) {
return true;
}
export function V4MarketsUpdateMarketBodyDtoFromJSON(json) {
return V4MarketsUpdateMarketBodyDtoFromJSONTyped(json, false);
}
export function V4MarketsUpdateMarketBodyDtoFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'defaultOwnerId': json['defaultOwnerId'] == null ? undefined : json['defaultOwnerId'],
'thresholdNoiCapRate': json['thresholdNoiCapRate'] == null ? undefined : json['thresholdNoiCapRate'],
'thresholdArvUplift': json['thresholdArvUplift'] == null ? undefined : json['thresholdArvUplift'],
'titleInsurancePercentage': json['titleInsurancePercentage'] == null ? undefined : json['titleInsurancePercentage'],
'defaultTermTemplateId': json['defaultTermTemplateId'] == null ? undefined : json['defaultTermTemplateId'],
'vacancyPercentage': json['vacancyPercentage'] == null ? undefined : json['vacancyPercentage'],
'repairAndMaintenancePercentage': json['repairAndMaintenancePercentage'] == null ? undefined : json['repairAndMaintenancePercentage'],
'replacementCostPerFeet': json['replacementCostPerFeet'] == null ? undefined : json['replacementCostPerFeet'],
'defaultCountyId': json['defaultCountyId'] == null ? undefined : json['defaultCountyId'],
};
}
export function V4MarketsUpdateMarketBodyDtoToJSON(json) {
return V4MarketsUpdateMarketBodyDtoToJSONTyped(json, false);
}
export function V4MarketsUpdateMarketBodyDtoToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'defaultOwnerId': value['defaultOwnerId'],
'thresholdNoiCapRate': value['thresholdNoiCapRate'],
'thresholdArvUplift': value['thresholdArvUplift'],
'titleInsurancePercentage': value['titleInsurancePercentage'],
'defaultTermTemplateId': value['defaultTermTemplateId'],
'vacancyPercentage': value['vacancyPercentage'],
'repairAndMaintenancePercentage': value['repairAndMaintenancePercentage'],
'replacementCostPerFeet': value['replacementCostPerFeet'],
'defaultCountyId': value['defaultCountyId'],
};
}