/* 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 DocumentMetadataBlockAttributesDimensions */ export interface DocumentMetadataBlockAttributesDimensions { /** * * @type {number} * @memberof DocumentMetadataBlockAttributesDimensions */ 'width': number | null; /** * * @type {number} * @memberof DocumentMetadataBlockAttributesDimensions */ 'height': number | null; } /** * Check if a given object implements the DocumentMetadataBlockAttributesDimensions interface. */ export function instanceOfDocumentMetadataBlockAttributesDimensions(value: object): value is DocumentMetadataBlockAttributesDimensions { if (!('width' in value) || value['width'] === undefined) return false; if (!('height' in value) || value['height'] === undefined) return false; return true; } export function DocumentMetadataBlockAttributesDimensionsFromJSON(json: any): DocumentMetadataBlockAttributesDimensions { return DocumentMetadataBlockAttributesDimensionsFromJSONTyped(json, false); } export function DocumentMetadataBlockAttributesDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentMetadataBlockAttributesDimensions { if (json == null) { return json; } const result = { } as DocumentMetadataBlockAttributesDimensions; if (json['width'] !== undefined) { if (json['width'] === null) { result['width'] = null; } else { result['width'] = json['width']; } } if (json['height'] !== undefined) { if (json['height'] === null) { result['height'] = null; } else { result['height'] = json['height']; } } return result; } export function DocumentMetadataBlockAttributesDimensionsToJSON(json: any): DocumentMetadataBlockAttributesDimensions { return DocumentMetadataBlockAttributesDimensionsToJSONTyped(json, false); } export function DocumentMetadataBlockAttributesDimensionsToJSONTyped(value?: DocumentMetadataBlockAttributesDimensions | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'width': value['width'], 'height': value['height'], }; }