UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

69 lines (68 loc) 2.88 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 SoSPropertyEntityUnderwritingModelOverrides interface. */ export function instanceOfSoSPropertyEntityUnderwritingModelOverrides(value) { if (!('pm_fees_monthly' in value) || value['pm_fees_monthly'] === undefined) return false; if (!('am_fees_monthly' in value) || value['am_fees_monthly'] === undefined) return false; if (!('vacancy_monthly' in value) || value['vacancy_monthly'] === undefined) return false; if (!('repair_and_maintainance_monthly' in value) || value['repair_and_maintainance_monthly'] === undefined) return false; if (!('insurance_monthly' in value) || value['insurance_monthly'] === undefined) return false; if (!('tax_monthly' in value) || value['tax_monthly'] === undefined) return false; if (!('utilities_simply_paying_monthly' in value) || value['utilities_simply_paying_monthly'] === undefined) return false; return true; } export function SoSPropertyEntityUnderwritingModelOverridesFromJSON(json) { return SoSPropertyEntityUnderwritingModelOverridesFromJSONTyped(json, false); } export function SoSPropertyEntityUnderwritingModelOverridesFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'pm_fees_monthly': json['pm_fees_monthly'], 'am_fees_monthly': json['am_fees_monthly'], 'vacancy_monthly': json['vacancy_monthly'], 'repair_and_maintainance_monthly': json['repair_and_maintainance_monthly'], 'insurance_monthly': json['insurance_monthly'], 'tax_monthly': json['tax_monthly'], 'utilities_simply_paying_monthly': json['utilities_simply_paying_monthly'], }; } export function SoSPropertyEntityUnderwritingModelOverridesToJSON(json) { return SoSPropertyEntityUnderwritingModelOverridesToJSONTyped(json, false); } export function SoSPropertyEntityUnderwritingModelOverridesToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'pm_fees_monthly': value['pm_fees_monthly'], 'am_fees_monthly': value['am_fees_monthly'], 'vacancy_monthly': value['vacancy_monthly'], 'repair_and_maintainance_monthly': value['repair_and_maintainance_monthly'], 'insurance_monthly': value['insurance_monthly'], 'tax_monthly': value['tax_monthly'], 'utilities_simply_paying_monthly': value['utilities_simply_paying_monthly'], }; }