/* 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 ImageMetadataBlockAttributesColor */ export interface ImageMetadataBlockAttributesColor { /** * * @type {string} * @memberof ImageMetadataBlockAttributesColor */ 'profile'?: string | null; /** * * @type {string} * @memberof ImageMetadataBlockAttributesColor */ 'space'?: string | null; /** * * @type {boolean} * @memberof ImageMetadataBlockAttributesColor */ 'alphaChannel'?: boolean | null; /** * * @type {string} * @memberof ImageMetadataBlockAttributesColor */ 'pixelFormat'?: string | null; /** * * @type {string} * @memberof ImageMetadataBlockAttributesColor */ 'transfer'?: string | null; /** * * @type {string} * @memberof ImageMetadataBlockAttributesColor */ 'primaries'?: string | null; } /** * Check if a given object implements the ImageMetadataBlockAttributesColor interface. */ export function instanceOfImageMetadataBlockAttributesColor(value: object): value is ImageMetadataBlockAttributesColor { return true; } export function ImageMetadataBlockAttributesColorFromJSON(json: any): ImageMetadataBlockAttributesColor { return ImageMetadataBlockAttributesColorFromJSONTyped(json, false); } export function ImageMetadataBlockAttributesColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageMetadataBlockAttributesColor { if (json == null) { return json; } const result = { } as ImageMetadataBlockAttributesColor; if (json['profile'] !== undefined) { if (json['profile'] === null) { result['profile'] = null; } else { result['profile'] = json['profile']; } } if (json['space'] !== undefined) { if (json['space'] === null) { result['space'] = null; } else { result['space'] = json['space']; } } if (json['alphaChannel'] !== undefined) { if (json['alphaChannel'] === null) { result['alphaChannel'] = null; } else { result['alphaChannel'] = json['alphaChannel']; } } if (json['pixelFormat'] !== undefined) { if (json['pixelFormat'] === null) { result['pixelFormat'] = null; } else { result['pixelFormat'] = json['pixelFormat']; } } if (json['transfer'] !== undefined) { if (json['transfer'] === null) { result['transfer'] = null; } else { result['transfer'] = json['transfer']; } } if (json['primaries'] !== undefined) { if (json['primaries'] === null) { result['primaries'] = null; } else { result['primaries'] = json['primaries']; } } return result; } export function ImageMetadataBlockAttributesColorToJSON(json: any): ImageMetadataBlockAttributesColor { return ImageMetadataBlockAttributesColorToJSONTyped(json, false); } export function ImageMetadataBlockAttributesColorToJSONTyped(value?: ImageMetadataBlockAttributesColor | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'profile': value['profile'], 'space': value['space'], 'alphaChannel': value['alphaChannel'], 'pixelFormat': value['pixelFormat'], 'transfer': value['transfer'], 'primaries': value['primaries'], }; }