/* 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 CreateProductTypeRequest */ export interface CreateProductTypeRequest { /** * * @type {string} * @memberof CreateProductTypeRequest */ name: string; } /** * Check if a given object implements the CreateProductTypeRequest interface. */ export function instanceOfCreateProductTypeRequest(value: object): value is CreateProductTypeRequest { if (!('name' in value) || value['name'] === undefined) return false; return true; } export function CreateProductTypeRequestFromJSON(json: any): CreateProductTypeRequest { return CreateProductTypeRequestFromJSONTyped(json, false); } export function CreateProductTypeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductTypeRequest { if (json == null) { return json; } return { 'name': json['name'], }; } export function CreateProductTypeRequestToJSON(json: any): CreateProductTypeRequest { return CreateProductTypeRequestToJSONTyped(json, false); } export function CreateProductTypeRequestToJSONTyped(value?: CreateProductTypeRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], }; }