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