/* Options: Date: 2026-05-19 10:57:47 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetTaskDetail.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Task implements IConvertible { /** * Async task ID */ // @ApiMember(Description="Async task ID", IsRequired=true) String? asyncTaskId; /** * Type of requested async task, e.g 'stock', 'sellout', 'crm' */ // @ApiMember(Description="Type of requested async task, e.g 'stock', 'sellout', 'crm'", IsRequired=true) String? type; /** * Async task creation date */ // @ApiMember(Description="Async task creation date", IsRequired=true) String? requestDate; /** * Status of requested async task, e.g 'REQ', 'INP', 'COM', 'ERR' */ // @ApiMember(Description="Status of requested async task, e.g 'REQ', 'INP', 'COM', 'ERR'", IsRequired=true) String? status; /** * Percentage of completion */ // @ApiMember(Description="Percentage of completion", IsRequired=true) int? percentage; /** * Brand Trigram */ // @ApiMember(Description="Brand Trigram", IsRequired=true) String? brand; /** * Download url of created files */ // @ApiMember(Description="Download url of created files") String? downloadUrl; /** * Presigned expiring download url */ // @ApiMember(Description="Presigned expiring download url") String? signedDownloadUrl; /** * Total count of operations */ // @ApiMember(Description="Total count of operations") int? totalResults; /** * Count of successful operations */ // @ApiMember(Description="Count of successful operations") int? totalSucceeded; /** * Count of failed operations */ // @ApiMember(Description="Count of failed operations") int? totalFailed; Task({this.asyncTaskId,this.type,this.requestDate,this.status,this.percentage,this.brand,this.downloadUrl,this.signedDownloadUrl,this.totalResults,this.totalSucceeded,this.totalFailed}); Task.fromJson(Map json) { fromMap(json); } fromMap(Map json) { asyncTaskId = json['asyncTaskId']; type = json['type']; requestDate = json['requestDate']; status = json['status']; percentage = json['percentage']; brand = json['brand']; downloadUrl = json['downloadUrl']; signedDownloadUrl = json['signedDownloadUrl']; totalResults = json['totalResults']; totalSucceeded = json['totalSucceeded']; totalFailed = json['totalFailed']; return this; } Map toJson() => { 'asyncTaskId': asyncTaskId, 'type': type, 'requestDate': requestDate, 'status': status, 'percentage': percentage, 'brand': brand, 'downloadUrl': downloadUrl, 'signedDownloadUrl': signedDownloadUrl, 'totalResults': totalResults, 'totalSucceeded': totalSucceeded, 'totalFailed': totalFailed }; getTypeName() => "Task"; TypeContext? context = _ctx; } class GetTaskDetailResponse extends Task implements IConvertible { GetTaskDetailResponse(); GetTaskDetailResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "GetTaskDetailResponse"; TypeContext? context = _ctx; } // @Route("/tasks/{asyncTaskId}", "GET") class GetTaskDetail implements IReturn, IConvertible, IGet { /** * Async task ID */ // @ApiMember(Description="Async task ID", IsRequired=true) String? asyncTaskId; GetTaskDetail({this.asyncTaskId}); GetTaskDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { asyncTaskId = json['asyncTaskId']; return this; } Map toJson() => { 'asyncTaskId': asyncTaskId }; createResponse() => GetTaskDetailResponse(); getResponseTypeName() => "GetTaskDetailResponse"; getTypeName() => "GetTaskDetail"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'Task': TypeInfo(TypeOf.Class, create:() => Task()), 'GetTaskDetailResponse': TypeInfo(TypeOf.Class, create:() => GetTaskDetailResponse()), 'GetTaskDetail': TypeInfo(TypeOf.Class, create:() => GetTaskDetail()), });