/* 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 { CommentWithAuthor } from './CommentWithAuthor'; import { CommentWithAuthorFromJSON, CommentWithAuthorFromJSONTyped, CommentWithAuthorToJSON, CommentWithAuthorToJSONTyped, } from './CommentWithAuthor'; /** * * @export * @interface ListResourceComments200ResponseData */ export interface ListResourceComments200ResponseData { /** * * @type {Array} * @memberof ListResourceComments200ResponseData */ 'comments': Array; } /** * Check if a given object implements the ListResourceComments200ResponseData interface. */ export function instanceOfListResourceComments200ResponseData(value: object): value is ListResourceComments200ResponseData { if (!('comments' in value) || value['comments'] === undefined) return false; return true; } export function ListResourceComments200ResponseDataFromJSON(json: any): ListResourceComments200ResponseData { return ListResourceComments200ResponseDataFromJSONTyped(json, false); } export function ListResourceComments200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResourceComments200ResponseData { if (json == null) { return json; } const result = { } as ListResourceComments200ResponseData; if (json['comments'] !== undefined) { result['comments'] = (json['comments'] as Array).map(CommentWithAuthorFromJSON); } return result; } export function ListResourceComments200ResponseDataToJSON(json: any): ListResourceComments200ResponseData { return ListResourceComments200ResponseDataToJSONTyped(json, false); } export function ListResourceComments200ResponseDataToJSONTyped(value?: ListResourceComments200ResponseData | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comments': ((value['comments'] as Array).map(CommentWithAuthorToJSON)), }; }