@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
49 lines (48 loc) • 1.64 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 SoSPropertyEntityAttomAllEventDetailDataAssessmentTax interface.
*/
export function instanceOfSoSPropertyEntityAttomAllEventDetailDataAssessmentTax(value) {
if (!('taxamt' in value) || value['taxamt'] === undefined)
return false;
if (!('taxyear' in value) || value['taxyear'] === undefined)
return false;
return true;
}
export function SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxFromJSON(json) {
return SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxFromJSONTyped(json, false);
}
export function SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'taxamt': json['taxamt'],
'taxyear': json['taxyear'],
};
}
export function SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxToJSON(json) {
return SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxToJSONTyped(json, false);
}
export function SoSPropertyEntityAttomAllEventDetailDataAssessmentTaxToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'taxamt': value['taxamt'],
'taxyear': value['taxyear'],
};
}