/* 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 UpdateProductTypeAttributeRequest */ export interface UpdateProductTypeAttributeRequest { /** * * @type {number} * @memberof UpdateProductTypeAttributeRequest */ attributeId: number; /** * * @type {string} * @memberof UpdateProductTypeAttributeRequest */ fieldType: UpdateProductTypeAttributeRequestFieldTypeEnum; } /** * @export */ export const UpdateProductTypeAttributeRequestFieldTypeEnum = { Performance: 'performance', Specification: 'specification', Dimension: 'dimension', Other: 'other' } as const; export type UpdateProductTypeAttributeRequestFieldTypeEnum = typeof UpdateProductTypeAttributeRequestFieldTypeEnum[keyof typeof UpdateProductTypeAttributeRequestFieldTypeEnum]; /** * Check if a given object implements the UpdateProductTypeAttributeRequest interface. */ export function instanceOfUpdateProductTypeAttributeRequest(value: object): value is UpdateProductTypeAttributeRequest { if (!('attributeId' in value) || value['attributeId'] === undefined) return false; if (!('fieldType' in value) || value['fieldType'] === undefined) return false; return true; } export function UpdateProductTypeAttributeRequestFromJSON(json: any): UpdateProductTypeAttributeRequest { return UpdateProductTypeAttributeRequestFromJSONTyped(json, false); } export function UpdateProductTypeAttributeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductTypeAttributeRequest { if (json == null) { return json; } return { 'attributeId': json['attribute_id'], 'fieldType': json['field_type'], }; } export function UpdateProductTypeAttributeRequestToJSON(json: any): UpdateProductTypeAttributeRequest { return UpdateProductTypeAttributeRequestToJSONTyped(json, false); } export function UpdateProductTypeAttributeRequestToJSONTyped(value?: UpdateProductTypeAttributeRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'attribute_id': value['attributeId'], 'field_type': value['fieldType'], }; }