// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class SizeChartDetectResponseBodyData extends $dara.Model { /** * @remarks * Indicates whether the image is a size chart. * * @example * false */ isSizeChart?: boolean; /** * @remarks * The usage information. The key is the usage name and the value is the count. * * @example * {"ProcessedImageCount":1} */ usageMap?: { [key: string]: number }; static names(): { [key: string]: string } { return { isSizeChart: 'IsSizeChart', usageMap: 'UsageMap', }; } static types(): { [key: string]: any } { return { isSizeChart: 'boolean', usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' }, }; } validate() { if(this.usageMap) { $dara.Model.validateMap(this.usageMap); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SizeChartDetectResponseBody extends $dara.Model { /** * @remarks * The error code. This parameter is not returned if the call is successful. * * @example * 200 */ code?: string; /** * @remarks * The size chart detection result. */ data?: SizeChartDetectResponseBodyData; /** * @remarks * The error message. This parameter is not returned if the call is successful. * * @example * OK */ message?: string; /** * @remarks * Id of the request * * @example * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F */ requestId?: string; /** * @remarks * Indicates whether the call was successful. Valid values: * - true: The call was successful. * - false: The call failed. * * @example * True */ success?: boolean; static names(): { [key: string]: string } { return { code: 'Code', data: 'Data', message: 'Message', requestId: 'RequestId', success: 'Success', }; } static types(): { [key: string]: any } { return { code: 'string', data: SizeChartDetectResponseBodyData, message: 'string', requestId: 'string', success: 'boolean', }; } validate() { if(this.data && typeof (this.data as any).validate === 'function') { (this.data as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }