/* 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'; import type { UpdateResourceRequestLocationAnyOf1 } from './UpdateResourceRequestLocationAnyOf1'; import { UpdateResourceRequestLocationAnyOf1FromJSON, UpdateResourceRequestLocationAnyOf1FromJSONTyped, UpdateResourceRequestLocationAnyOf1ToJSON, UpdateResourceRequestLocationAnyOf1ToJSONTyped, } from './UpdateResourceRequestLocationAnyOf1'; import type { UpdateResourceRequestLocationAnyOf } from './UpdateResourceRequestLocationAnyOf'; import { UpdateResourceRequestLocationAnyOfFromJSON, UpdateResourceRequestLocationAnyOfFromJSONTyped, UpdateResourceRequestLocationAnyOfToJSON, UpdateResourceRequestLocationAnyOfToJSONTyped, } from './UpdateResourceRequestLocationAnyOf'; /** * * @export * @interface UpdateResourceRequestLocation */ export interface UpdateResourceRequestLocation { /** * * @type {string} * @memberof UpdateResourceRequestLocation */ 'sortKey'?: string; /** * * @type {string} * @memberof UpdateResourceRequestLocation */ 'insertBeforeId': string; /** * * @type {string} * @memberof UpdateResourceRequestLocation */ 'insertAfterId': string; } /** * Check if a given object implements the UpdateResourceRequestLocation interface. */ export function instanceOfUpdateResourceRequestLocation(value: object): value is UpdateResourceRequestLocation { if (!('insertBeforeId' in value) || value['insertBeforeId'] === undefined) return false; if (!('insertAfterId' in value) || value['insertAfterId'] === undefined) return false; return true; } export function UpdateResourceRequestLocationFromJSON(json: any): UpdateResourceRequestLocation { return UpdateResourceRequestLocationFromJSONTyped(json, false); } export function UpdateResourceRequestLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResourceRequestLocation { if (json == null) { return json; } const result = { } as UpdateResourceRequestLocation; if (json['sortKey'] !== undefined) { result['sortKey'] = json['sortKey']; } if (json['insertBeforeId'] !== undefined) { result['insertBeforeId'] = json['insertBeforeId']; } if (json['insertAfterId'] !== undefined) { result['insertAfterId'] = json['insertAfterId']; } return result; } export function UpdateResourceRequestLocationToJSON(json: any): UpdateResourceRequestLocation { return UpdateResourceRequestLocationToJSONTyped(json, false); } export function UpdateResourceRequestLocationToJSONTyped(value?: UpdateResourceRequestLocation | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'sortKey': value['sortKey'], 'insertBeforeId': value['insertBeforeId'], 'insertAfterId': value['insertAfterId'], }; }