/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.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 { mapValues } from '../runtime'; /** * * @export * @interface ListResourceRootsOrderParameter */ export interface ListResourceRootsOrderParameter { /** * * @type {string} * @memberof ListResourceRootsOrderParameter */ 'property': ListResourceRootsOrderParameterPropertyEnum; /** * * @type {string} * @memberof ListResourceRootsOrderParameter */ 'direction'?: ListResourceRootsOrderParameterDirectionEnum; } /** * @export */ export const ListResourceRootsOrderParameterPropertyEnum = { Name: 'name' } as const; export type ListResourceRootsOrderParameterPropertyEnum = typeof ListResourceRootsOrderParameterPropertyEnum[keyof typeof ListResourceRootsOrderParameterPropertyEnum]; /** * @export */ export const ListResourceRootsOrderParameterDirectionEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type ListResourceRootsOrderParameterDirectionEnum = typeof ListResourceRootsOrderParameterDirectionEnum[keyof typeof ListResourceRootsOrderParameterDirectionEnum]; /** * Check if a given object implements the ListResourceRootsOrderParameter interface. */ export function instanceOfListResourceRootsOrderParameter(value: object): value is ListResourceRootsOrderParameter { if (!('property' in value) || value['property'] === undefined) return false; return true; } export function ListResourceRootsOrderParameterFromJSON(json: any): ListResourceRootsOrderParameter { return ListResourceRootsOrderParameterFromJSONTyped(json, false); } export function ListResourceRootsOrderParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResourceRootsOrderParameter { if (json == null) { return json; } const result = { } as ListResourceRootsOrderParameter; if (json['property'] !== undefined) { result['property'] = json['property']; } if (json['direction'] !== undefined) { result['direction'] = json['direction']; } return result; } export function ListResourceRootsOrderParameterToJSON(json: any): ListResourceRootsOrderParameter { return ListResourceRootsOrderParameterToJSONTyped(json, false); } export function ListResourceRootsOrderParameterToJSONTyped(value?: ListResourceRootsOrderParameter | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'property': value['property'], 'direction': value['direction'], }; }