/* 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 AssetFileForUploadResource */ export interface AssetFileForUploadResource { /** * * @type {number} * @memberof AssetFileForUploadResource */ id: number; /** * * @type {string} * @memberof AssetFileForUploadResource */ url: string; /** * * @type {Array} * @memberof AssetFileForUploadResource */ headers: Array; /** * * @type {string} * @memberof AssetFileForUploadResource */ fileName: string; } /** * Check if a given object implements the AssetFileForUploadResource interface. */ export function instanceOfAssetFileForUploadResource(value: object): value is AssetFileForUploadResource { 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 AssetFileForUploadResourceFromJSON(json: any): AssetFileForUploadResource { return AssetFileForUploadResourceFromJSONTyped(json, false); } export function AssetFileForUploadResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFileForUploadResource { if (json == null) { return json; } return { 'id': json['id'], 'url': json['url'], 'headers': json['headers'], 'fileName': json['fileName'], }; } export function AssetFileForUploadResourceToJSON(json: any): AssetFileForUploadResource { return AssetFileForUploadResourceToJSONTyped(json, false); } export function AssetFileForUploadResourceToJSONTyped(value?: AssetFileForUploadResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'url': value['url'], 'headers': value['headers'], 'fileName': value['fileName'], }; }