/* 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 UpdateAttributeProductTypeRequest */ export interface UpdateAttributeProductTypeRequest { /** * * @type {number} * @memberof UpdateAttributeProductTypeRequest */ productTypeId: number; /** * * @type {string} * @memberof UpdateAttributeProductTypeRequest */ fieldType: UpdateAttributeProductTypeRequestFieldTypeEnum; } /** * @export */ export const UpdateAttributeProductTypeRequestFieldTypeEnum = { Performance: 'performance', Specification: 'specification', Dimension: 'dimension', Other: 'other' } as const; export type UpdateAttributeProductTypeRequestFieldTypeEnum = typeof UpdateAttributeProductTypeRequestFieldTypeEnum[keyof typeof UpdateAttributeProductTypeRequestFieldTypeEnum]; /** * Check if a given object implements the UpdateAttributeProductTypeRequest interface. */ export function instanceOfUpdateAttributeProductTypeRequest(value: object): value is UpdateAttributeProductTypeRequest { if (!('productTypeId' in value) || value['productTypeId'] === undefined) return false; if (!('fieldType' in value) || value['fieldType'] === undefined) return false; return true; } export function UpdateAttributeProductTypeRequestFromJSON(json: any): UpdateAttributeProductTypeRequest { return UpdateAttributeProductTypeRequestFromJSONTyped(json, false); } export function UpdateAttributeProductTypeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAttributeProductTypeRequest { if (json == null) { return json; } return { 'productTypeId': json['product_type_id'], 'fieldType': json['field_type'], }; } export function UpdateAttributeProductTypeRequestToJSON(json: any): UpdateAttributeProductTypeRequest { return UpdateAttributeProductTypeRequestToJSONTyped(json, false); } export function UpdateAttributeProductTypeRequestToJSONTyped(value?: UpdateAttributeProductTypeRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'product_type_id': value['productTypeId'], 'field_type': value['fieldType'], }; }