/* 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 UpdateProductChildRequestAssetsInner */ export interface UpdateProductChildRequestAssetsInner { /** * * @type {string} * @memberof UpdateProductChildRequestAssetsInner */ altText?: string | null; /** * * @type {string} * @memberof UpdateProductChildRequestAssetsInner */ mimeType?: string | null; /** * * @type {number} * @memberof UpdateProductChildRequestAssetsInner */ fileId?: number | null; /** * * @type {boolean} * @memberof UpdateProductChildRequestAssetsInner */ isExternal?: boolean; /** * * @type {string} * @memberof UpdateProductChildRequestAssetsInner */ externalUrl?: string | null; /** * * @type {number} * @memberof UpdateProductChildRequestAssetsInner */ index: number; } /** * Check if a given object implements the UpdateProductChildRequestAssetsInner interface. */ export function instanceOfUpdateProductChildRequestAssetsInner(value: object): value is UpdateProductChildRequestAssetsInner { if (!('index' in value) || value['index'] === undefined) return false; return true; } export function UpdateProductChildRequestAssetsInnerFromJSON(json: any): UpdateProductChildRequestAssetsInner { return UpdateProductChildRequestAssetsInnerFromJSONTyped(json, false); } export function UpdateProductChildRequestAssetsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductChildRequestAssetsInner { if (json == null) { return json; } return { 'altText': json['alt_text'] == null ? undefined : json['alt_text'], 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'], 'fileId': json['file_id'] == null ? undefined : json['file_id'], 'isExternal': json['is_external'] == null ? undefined : json['is_external'], 'externalUrl': json['external_url'] == null ? undefined : json['external_url'], 'index': json['index'], }; } export function UpdateProductChildRequestAssetsInnerToJSON(json: any): UpdateProductChildRequestAssetsInner { return UpdateProductChildRequestAssetsInnerToJSONTyped(json, false); } export function UpdateProductChildRequestAssetsInnerToJSONTyped(value?: UpdateProductChildRequestAssetsInner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'alt_text': value['altText'], 'mime_type': value['mimeType'], 'file_id': value['fileId'], 'is_external': value['isExternal'], 'external_url': value['externalUrl'], 'index': value['index'], }; }