/* 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 ResourceParent */ export interface ResourceParent { /** * * @type {string} * @memberof ResourceParent */ 'id': string; /** * * @type {string} * @memberof ResourceParent */ 'name': string | null; } /** * Check if a given object implements the ResourceParent interface. */ export function instanceOfResourceParent(value: object): value is ResourceParent { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function ResourceParentFromJSON(json: any): ResourceParent { return ResourceParentFromJSONTyped(json, false); } export function ResourceParentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceParent { if (json == null) { return json; } const result = { } as ResourceParent; if (json['id'] !== undefined) { result['id'] = json['id']; } if (json['name'] !== undefined) { if (json['name'] === null) { result['name'] = null; } else { result['name'] = json['name']; } } return result; } export function ResourceParentToJSON(json: any): ResourceParent { return ResourceParentToJSONTyped(json, false); } export function ResourceParentToJSONTyped(value?: ResourceParent | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], }; }