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