/* Options: Date: 2026-05-19 09:52:51 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: GetCatalog.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Article implements IConvertible { /** * Reference ID / Code of the Article */ // @ApiMember(Description="Reference ID / Code of the Article", IsRequired=true) String? articleCode; /** * Price of the article */ // @ApiMember(Description="Price of the article", IsRequired=true) double? price; /** * Currency of the price of the article */ // @ApiMember(Description="Currency of the price of the article", IsRequired=true) String? currency; Article({this.articleCode,this.price,this.currency}); Article.fromJson(Map json) { fromMap(json); } fromMap(Map json) { articleCode = json['articleCode']; price = JsonConverters.toDouble(json['price']); currency = json['currency']; return this; } Map toJson() => { 'articleCode': articleCode, 'price': price, 'currency': currency }; getTypeName() => "Article"; TypeContext? context = _ctx; } class GetCatalogResponse implements IConvertible { List
? articles; GetCatalogResponse({this.articles}); GetCatalogResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { articles = JsonConverters.fromJson(json['articles'],'List
',context!); return this; } Map toJson() => { 'articles': JsonConverters.toJson(articles,'List
',context!) }; getTypeName() => "GetCatalogResponse"; TypeContext? context = _ctx; } // @Route("/purchase/catalog", "GET") class GetCatalog implements IReturn, IConvertible, IGet { /** * POS Legacy */ // @ApiMember(Description="POS Legacy", IsRequired=true) String? posCode; /** * Brand Trigram of the POS */ // @ApiMember(Description="Brand Trigram of the POS", IsRequired=true) String? brand; GetCatalog({this.posCode,this.brand}); GetCatalog.fromJson(Map json) { fromMap(json); } fromMap(Map json) { posCode = json['posCode']; brand = json['brand']; return this; } Map toJson() => { 'posCode': posCode, 'brand': brand }; createResponse() => GetCatalogResponse(); getResponseTypeName() => "GetCatalogResponse"; getTypeName() => "GetCatalog"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'Article': TypeInfo(TypeOf.Class, create:() => Article()), 'GetCatalogResponse': TypeInfo(TypeOf.Class, create:() => GetCatalogResponse()), 'List
': TypeInfo(TypeOf.Class, create:() =>
[]), 'GetCatalog': TypeInfo(TypeOf.Class, create:() => GetCatalog()), });