@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
50 lines (49 loc) • 1.88 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.
*/
import { SoSPropertyEntityGeocodingDataLocationFromJSON, SoSPropertyEntityGeocodingDataLocationToJSON, } from './SoSPropertyEntityGeocodingDataLocation';
/**
* Check if a given object implements the SoSPropertyEntityGeocodingDataBounds interface.
*/
export function instanceOfSoSPropertyEntityGeocodingDataBounds(value) {
if (!('northeast' in value) || value['northeast'] === undefined)
return false;
if (!('southwest' in value) || value['southwest'] === undefined)
return false;
return true;
}
export function SoSPropertyEntityGeocodingDataBoundsFromJSON(json) {
return SoSPropertyEntityGeocodingDataBoundsFromJSONTyped(json, false);
}
export function SoSPropertyEntityGeocodingDataBoundsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'northeast': SoSPropertyEntityGeocodingDataLocationFromJSON(json['northeast']),
'southwest': SoSPropertyEntityGeocodingDataLocationFromJSON(json['southwest']),
};
}
export function SoSPropertyEntityGeocodingDataBoundsToJSON(json) {
return SoSPropertyEntityGeocodingDataBoundsToJSONTyped(json, false);
}
export function SoSPropertyEntityGeocodingDataBoundsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'northeast': SoSPropertyEntityGeocodingDataLocationToJSON(value['northeast']),
'southwest': SoSPropertyEntityGeocodingDataLocationToJSON(value['southwest']),
};
}