@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
53 lines (52 loc) • 1.7 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 SoSMlsListingEntityDataAssociation interface.
*/
export function instanceOfSoSMlsListingEntityDataAssociation(value) {
if (!('fee' in value) || value['fee'] === undefined)
return false;
if (!('frequency' in value) || value['frequency'] === undefined)
return false;
return true;
}
export function SoSMlsListingEntityDataAssociationFromJSON(json) {
return SoSMlsListingEntityDataAssociationFromJSONTyped(json, false);
}
export function SoSMlsListingEntityDataAssociationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'fee': json['fee'],
'name': json['name'] == null ? undefined : json['name'],
'amenities': json['amenities'] == null ? undefined : json['amenities'],
'frequency': json['frequency'],
};
}
export function SoSMlsListingEntityDataAssociationToJSON(json) {
return SoSMlsListingEntityDataAssociationToJSONTyped(json, false);
}
export function SoSMlsListingEntityDataAssociationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'fee': value['fee'],
'name': value['name'],
'amenities': value['amenities'],
'frequency': value['frequency'],
};
}