/* 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 CreateProductRequestCategoriesInner */ export interface CreateProductRequestCategoriesInner { /** * * @type {number} * @memberof CreateProductRequestCategoriesInner */ siteId: number; /** * * @type {Array} * @memberof CreateProductRequestCategoriesInner */ categoryIds: Array; } /** * Check if a given object implements the CreateProductRequestCategoriesInner interface. */ export function instanceOfCreateProductRequestCategoriesInner(value: object): value is CreateProductRequestCategoriesInner { if (!('siteId' in value) || value['siteId'] === undefined) return false; if (!('categoryIds' in value) || value['categoryIds'] === undefined) return false; return true; } export function CreateProductRequestCategoriesInnerFromJSON(json: any): CreateProductRequestCategoriesInner { return CreateProductRequestCategoriesInnerFromJSONTyped(json, false); } export function CreateProductRequestCategoriesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestCategoriesInner { if (json == null) { return json; } return { 'siteId': json['site_id'], 'categoryIds': json['category_ids'], }; } export function CreateProductRequestCategoriesInnerToJSON(json: any): CreateProductRequestCategoriesInner { return CreateProductRequestCategoriesInnerToJSONTyped(json, false); } export function CreateProductRequestCategoriesInnerToJSONTyped(value?: CreateProductRequestCategoriesInner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'site_id': value['siteId'], 'category_ids': value['categoryIds'], }; }