/* Options: Date: 2026-05-19 10:46:55 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: GetProductCollections.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ProductCollection implements IConvertible { /** * Product Collection description */ // @ApiMember(Description="Product Collection description", IsRequired=true) String? productCollection; /** * SAP ProductCollection ID, e.g. 'CA-1' */ // @ApiMember(Description="SAP ProductCollection ID, e.g. 'CA-1'", IsRequired=true) String? sapProductCollectionId; /** * Product Collection description translation */ // @ApiMember(Description="Product Collection description translation", IsRequired=true) String? translation; ProductCollection({this.productCollection,this.sapProductCollectionId,this.translation}); ProductCollection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { productCollection = json['productCollection']; sapProductCollectionId = json['sapProductCollectionId']; translation = json['translation']; return this; } Map toJson() => { 'productCollection': productCollection, 'sapProductCollectionId': sapProductCollectionId, 'translation': translation }; getTypeName() => "ProductCollection"; TypeContext? context = _ctx; } class GetProductCollectionsResponse extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; ProductCollection operator [](int index) => l[index]; void operator []=(int index, ProductCollection value) { l[index] = value; } GetProductCollectionsResponse(); GetProductCollectionsResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "GetProductCollectionsResponse"; TypeContext? context = _ctx; } // @Route("/product-collection/{brand}/{posCode}", "GET") class GetProductCollections implements IReturn, IConvertible, IGet { /** * Brand */ // @ApiMember(Description="Brand", IsRequired=true) String? brand; /** * POS Legacy */ // @ApiMember(Description="POS Legacy", IsRequired=true) String? posCode; GetProductCollections({this.brand,this.posCode}); GetProductCollections.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand']; posCode = json['posCode']; return this; } Map toJson() => { 'brand': brand, 'posCode': posCode }; createResponse() => GetProductCollectionsResponse(); getResponseTypeName() => "GetProductCollectionsResponse"; getTypeName() => "GetProductCollections"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'ProductCollection': TypeInfo(TypeOf.Class, create:() => ProductCollection()), 'GetProductCollectionsResponse': TypeInfo(TypeOf.Class, create:() => GetProductCollectionsResponse()), 'GetProductCollections': TypeInfo(TypeOf.Class, create:() => GetProductCollections()), });