/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * 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 DocumentFileForUploadResource */ export interface DocumentFileForUploadResource { /** * * @type {number} * @memberof DocumentFileForUploadResource */ id: number; /** * * @type {string} * @memberof DocumentFileForUploadResource */ url: string; /** * * @type {Array} * @memberof DocumentFileForUploadResource */ headers: Array; /** * * @type {string} * @memberof DocumentFileForUploadResource */ fileName: string; } /** * Check if a given object implements the DocumentFileForUploadResource interface. */ export function instanceOfDocumentFileForUploadResource(value: object): value is DocumentFileForUploadResource { if (!('id' in value) || value['id'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; if (!('headers' in value) || value['headers'] === undefined) return false; if (!('fileName' in value) || value['fileName'] === undefined) return false; return true; } export function DocumentFileForUploadResourceFromJSON(json: any): DocumentFileForUploadResource { return DocumentFileForUploadResourceFromJSONTyped(json, false); } export function DocumentFileForUploadResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentFileForUploadResource { if (json == null) { return json; } return { 'id': json['id'], 'url': json['url'], 'headers': json['headers'], 'fileName': json['fileName'], }; } export function DocumentFileForUploadResourceToJSON(json: any): DocumentFileForUploadResource { return DocumentFileForUploadResourceToJSONTyped(json, false); } export function DocumentFileForUploadResourceToJSONTyped(value?: DocumentFileForUploadResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'url': value['url'], 'headers': value['headers'], 'fileName': value['fileName'], }; }