@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
51 lines (50 loc) • 1.78 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 SoSNeighborhoodEntityBase interface.
*/
export function instanceOfSoSNeighborhoodEntityBase(value) {
if (!('nid' in value) || value['nid'] === undefined)
return false;
return true;
}
export function SoSNeighborhoodEntityBaseFromJSON(json) {
return SoSNeighborhoodEntityBaseFromJSONTyped(json, false);
}
export function SoSNeighborhoodEntityBaseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'nid': json['nid'],
'name': json['name'] == null ? undefined : json['name'],
'attomNeighborhoodCommunityData': json['attomNeighborhoodCommunityData'] == null ? undefined : json['attomNeighborhoodCommunityData'],
'transferTaxBuyerApportionment': json['transferTaxBuyerApportionment'] == null ? undefined : json['transferTaxBuyerApportionment'],
};
}
export function SoSNeighborhoodEntityBaseToJSON(json) {
return SoSNeighborhoodEntityBaseToJSONTyped(json, false);
}
export function SoSNeighborhoodEntityBaseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'nid': value['nid'],
'name': value['name'],
'attomNeighborhoodCommunityData': value['attomNeighborhoodCommunityData'],
'transferTaxBuyerApportionment': value['transferTaxBuyerApportionment'],
};
}