@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
53 lines (52 loc) • 1.73 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 V4RentalListingsGetUniqueValuesResponseDto interface.
*/
export function instanceOfV4RentalListingsGetUniqueValuesResponseDto(value) {
if (!('uniqueValues' in value) || value['uniqueValues'] === undefined)
return false;
if (!('total' in value) || value['total'] === undefined)
return false;
if (!('column' in value) || value['column'] === undefined)
return false;
return true;
}
export function V4RentalListingsGetUniqueValuesResponseDtoFromJSON(json) {
return V4RentalListingsGetUniqueValuesResponseDtoFromJSONTyped(json, false);
}
export function V4RentalListingsGetUniqueValuesResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'uniqueValues': json['uniqueValues'],
'total': json['total'],
'column': json['column'],
};
}
export function V4RentalListingsGetUniqueValuesResponseDtoToJSON(json) {
return V4RentalListingsGetUniqueValuesResponseDtoToJSONTyped(json, false);
}
export function V4RentalListingsGetUniqueValuesResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'uniqueValues': value['uniqueValues'],
'total': value['total'],
'column': value['column'],
};
}