/* 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 PresignedImage */ export interface PresignedImage { /** * * @type {string} * @memberof PresignedImage */ 'url': string; /** * * @type {number} * @memberof PresignedImage */ 'width'?: number | null; /** * * @type {number} * @memberof PresignedImage */ 'height'?: number | null; /** * * @type {string} * @memberof PresignedImage */ 'mime'?: string | null; } /** * Check if a given object implements the PresignedImage interface. */ export function instanceOfPresignedImage(value: object): value is PresignedImage { if (!('url' in value) || value['url'] === undefined) return false; return true; } export function PresignedImageFromJSON(json: any): PresignedImage { return PresignedImageFromJSONTyped(json, false); } export function PresignedImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PresignedImage { if (json == null) { return json; } const result = { } as PresignedImage; if (json['url'] !== undefined) { result['url'] = json['url']; } 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']; } } if (json['mime'] !== undefined) { if (json['mime'] === null) { result['mime'] = null; } else { result['mime'] = json['mime']; } } return result; } export function PresignedImageToJSON(json: any): PresignedImage { return PresignedImageToJSONTyped(json, false); } export function PresignedImageToJSONTyped(value?: PresignedImage | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'url': value['url'], 'width': value['width'], 'height': value['height'], 'mime': value['mime'], }; }