UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

58 lines (57 loc) 1.72 kB
/* 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. */ /** * @export * @enum {string} */ export var SoSViewEntityDataSortDirection; (function (SoSViewEntityDataSortDirection) { SoSViewEntityDataSortDirection["Asc"] = "asc"; SoSViewEntityDataSortDirection["Desc"] = "desc"; })(SoSViewEntityDataSortDirection || (SoSViewEntityDataSortDirection = {})); /** * Check if a given object implements the SoSViewEntityDataSort interface. */ export function instanceOfSoSViewEntityDataSort(value) { if (!('columnName' in value) || value['columnName'] === undefined) return false; if (!('direction' in value) || value['direction'] === undefined) return false; return true; } export function SoSViewEntityDataSortFromJSON(json) { return SoSViewEntityDataSortFromJSONTyped(json, false); } export function SoSViewEntityDataSortFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'columnName': json['columnName'], 'direction': json['direction'], }; } export function SoSViewEntityDataSortToJSON(json) { return SoSViewEntityDataSortToJSONTyped(json, false); } export function SoSViewEntityDataSortToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'columnName': value['columnName'], 'direction': value['direction'], }; }