/* 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 { PresignedImage } from './PresignedImage'; import { PresignedImageFromJSON, PresignedImageFromJSONTyped, PresignedImageToJSON, PresignedImageToJSONTyped, } from './PresignedImage'; import type { DocumentMetadataBlockAttributesDocument } from './DocumentMetadataBlockAttributesDocument'; import { DocumentMetadataBlockAttributesDocumentFromJSON, DocumentMetadataBlockAttributesDocumentFromJSONTyped, DocumentMetadataBlockAttributesDocumentToJSON, DocumentMetadataBlockAttributesDocumentToJSONTyped, } from './DocumentMetadataBlockAttributesDocument'; import type { DocumentMetadataBlockAttributesDimensions } from './DocumentMetadataBlockAttributesDimensions'; import { DocumentMetadataBlockAttributesDimensionsFromJSON, DocumentMetadataBlockAttributesDimensionsFromJSONTyped, DocumentMetadataBlockAttributesDimensionsToJSON, DocumentMetadataBlockAttributesDimensionsToJSONTyped, } from './DocumentMetadataBlockAttributesDimensions'; /** * * @export * @interface DocumentMetadataBlockAttributes */ export interface DocumentMetadataBlockAttributes { /** * * @type {DocumentMetadataBlockAttributesDocument} * @memberof DocumentMetadataBlockAttributes */ 'document'?: DocumentMetadataBlockAttributesDocument | null; /** * * @type {DocumentMetadataBlockAttributesDimensions} * @memberof DocumentMetadataBlockAttributes */ 'dimensions'?: DocumentMetadataBlockAttributesDimensions | null; /** * * @type {PresignedImage} * @memberof DocumentMetadataBlockAttributes */ 'cover': PresignedImage | null; } /** * Check if a given object implements the DocumentMetadataBlockAttributes interface. */ export function instanceOfDocumentMetadataBlockAttributes(value: object): value is DocumentMetadataBlockAttributes { if (!('cover' in value) || value['cover'] === undefined) return false; return true; } export function DocumentMetadataBlockAttributesFromJSON(json: any): DocumentMetadataBlockAttributes { return DocumentMetadataBlockAttributesFromJSONTyped(json, false); } export function DocumentMetadataBlockAttributesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentMetadataBlockAttributes { if (json == null) { return json; } const result = { } as DocumentMetadataBlockAttributes; if (json['document'] !== undefined) { if (json['document'] === null) { result['document'] = null; } else { result['document'] = DocumentMetadataBlockAttributesDocumentFromJSON(json['document']); } } if (json['dimensions'] !== undefined) { if (json['dimensions'] === null) { result['dimensions'] = null; } else { result['dimensions'] = DocumentMetadataBlockAttributesDimensionsFromJSON(json['dimensions']); } } if (json['cover'] !== undefined) { if (json['cover'] === null) { result['cover'] = null; } else { result['cover'] = PresignedImageFromJSON(json['cover']); } } return result; } export function DocumentMetadataBlockAttributesToJSON(json: any): DocumentMetadataBlockAttributes { return DocumentMetadataBlockAttributesToJSONTyped(json, false); } export function DocumentMetadataBlockAttributesToJSONTyped(value?: DocumentMetadataBlockAttributes | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'document': DocumentMetadataBlockAttributesDocumentToJSON(value['document']), 'dimensions': DocumentMetadataBlockAttributesDimensionsToJSON(value['dimensions']), 'cover': PresignedImageToJSON(value['cover']), }; }