/* 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 DocumentFrontendResource */ export interface DocumentFrontendResource { /** * * @type {number} * @memberof DocumentFrontendResource */ id?: number | null; /** * * @type {string} * @memberof DocumentFrontendResource */ name: string; /** * * @type {string} * @memberof DocumentFrontendResource */ fileUrl: string; } /** * Check if a given object implements the DocumentFrontendResource interface. */ export function instanceOfDocumentFrontendResource(value: object): value is DocumentFrontendResource { if (!('name' in value) || value['name'] === undefined) return false; if (!('fileUrl' in value) || value['fileUrl'] === undefined) return false; return true; } export function DocumentFrontendResourceFromJSON(json: any): DocumentFrontendResource { return DocumentFrontendResourceFromJSONTyped(json, false); } export function DocumentFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentFrontendResource { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'], 'fileUrl': json['fileUrl'], }; } export function DocumentFrontendResourceToJSON(json: any): DocumentFrontendResource { return DocumentFrontendResourceToJSONTyped(json, false); } export function DocumentFrontendResourceToJSONTyped(value?: DocumentFrontendResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'fileUrl': value['fileUrl'], }; }