/* Options: Date: 2026-06-14 21:42:33 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://qp-microservices-booster.richemont.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: StockRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseRequest implements IRequest, IConvertible { String? sid; String? app; String? _os; String? _appVersion; String? _searchMethod; BaseRequest({this.sid,this.app,this._os,this._appVersion,this._searchMethod}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sid = json['sid']; app = json['app']; _os = json['_os']; _appVersion = json['_appVersion']; _searchMethod = json['_searchMethod']; return this; } Map toJson() => { 'sid': sid, 'app': app, '_os': _os, '_appVersion': _appVersion, '_searchMethod': _searchMethod }; getTypeName() => "BaseRequest<$TResponse>"; TypeContext? context = _ctx; } abstract class IRequest { String? sid; String? app; } class BaseResponse implements IRespose, IConvertible { String? _xmlns; String? _type; String? _source; String? _tstamp; String? _user; String? _env; String? _uri; String? _query; BaseResponse({this._xmlns,this._type,this._source,this._tstamp,this._user,this._env,this._uri,this._query}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { _xmlns = json['_xmlns']; _type = json['_type']; _source = json['_source']; _tstamp = json['_tstamp']; _user = json['_user']; _env = json['_env']; _uri = json['_uri']; _query = json['_query']; return this; } Map toJson() => { '_xmlns': _xmlns, '_type': _type, '_source': _source, '_tstamp': _tstamp, '_user': _user, '_env': _env, '_uri': _uri, '_query': _query }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } abstract class IRespose { String? _xmlns; String? _type; String? _source; String? _tstamp; String? _user; String? _env; String? _uri; String? _query; } class Article implements IConvertible { String? ref; String? serial; String? name; LookupInt? site; String? brand; bool? isConsignment; Article({this.ref,this.serial,this.name,this.site,this.brand,this.isConsignment}); Article.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ref = json['ref']; serial = json['serial']; name = json['name']; site = JsonConverters.fromJson(json['site'],'LookupInt',context!); brand = json['brand']; isConsignment = json['isConsignment']; return this; } Map toJson() => { 'ref': ref, 'serial': serial, 'name': name, 'site': JsonConverters.toJson(site,'LookupInt',context!), 'brand': brand, 'isConsignment': isConsignment }; getTypeName() => "Article"; TypeContext? context = _ctx; } class Article implements IConvertible { String? ref; String? serial; String? name; String? shortDesc; String? brand; int? warrantyStatusId; String? warrantyStatusDesc; String? warrantyStatusCode; bool? isConsignment; Article({this.ref,this.serial,this.name,this.shortDesc,this.brand,this.warrantyStatusId,this.warrantyStatusDesc,this.warrantyStatusCode,this.isConsignment}); Article.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ref = json['ref']; serial = json['serial']; name = json['name']; shortDesc = json['shortDesc']; brand = json['brand']; warrantyStatusId = json['warrantyStatusId']; warrantyStatusDesc = json['warrantyStatusDesc']; warrantyStatusCode = json['warrantyStatusCode']; isConsignment = json['isConsignment']; return this; } Map toJson() => { 'ref': ref, 'serial': serial, 'name': name, 'shortDesc': shortDesc, 'brand': brand, 'warrantyStatusId': warrantyStatusId, 'warrantyStatusDesc': warrantyStatusDesc, 'warrantyStatusCode': warrantyStatusCode, 'isConsignment': isConsignment }; getTypeName() => "Article"; TypeContext? context = _ctx; } class StockResponse extends BaseResponse implements IConvertible { List
? articles; StockResponse({this.articles}); StockResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); articles = JsonConverters.fromJson(json['articles'],'List
',context!); return this; } Map toJson() => super.toJson()..addAll({ 'articles': JsonConverters.toJson(articles,'List
',context!) }); getTypeName() => "StockResponse"; TypeContext? context = _ctx; } // @Route("/warranty/v1/articles", "GET") class StockRequest extends BaseRequest implements IReturn, IConvertible, IGet { StockRequest(); StockRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => StockResponse(); getResponseTypeName() => "StockResponse"; getTypeName() => "StockRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qp_microservices_booster.richemont.com', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'IRequest': TypeInfo(TypeOf.Interface), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'IRespose': TypeInfo(TypeOf.Interface), 'Article': TypeInfo(TypeOf.Class, create:() => Article()), 'LookupInt': TypeInfo(TypeOf.Class, create:() => LookupInt()), 'StockResponse': TypeInfo(TypeOf.Class, create:() => StockResponse()), 'List
': TypeInfo(TypeOf.Class, create:() =>
[]), 'StockRequest': TypeInfo(TypeOf.Class, create:() => StockRequest()), });