/* Options: Date: 2026-05-19 10:59:15 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: GetSerialNumberHistory.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SerialNumberList implements IConvertible { /** * Article Code */ // @ApiMember(Description="Article Code", IsRequired=true) String? articleCode; /** * Serial Number */ // @ApiMember(Description="Serial Number", IsRequired=true) String? serialNumber; SerialNumberList({this.articleCode,this.serialNumber}); SerialNumberList.fromJson(Map json) { fromMap(json); } fromMap(Map json) { articleCode = json['articleCode']; serialNumber = json['serialNumber']; return this; } Map toJson() => { 'articleCode': articleCode, 'serialNumber': serialNumber }; getTypeName() => "SerialNumberList"; TypeContext? context = _ctx; } class GetSerialNumberHistoryResponse extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; SerialNumberList operator [](int index) => l[index]; void operator []=(int index, SerialNumberList value) { l[index] = value; } GetSerialNumberHistoryResponse(); GetSerialNumberHistoryResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "GetSerialNumberHistoryResponse"; TypeContext? context = _ctx; } // @Route("/serialnumber/{brand}/{serialNumber}/lookup", "GET") class GetSerialNumberHistory implements IReturn, IConvertible, IGet { /** * Brand */ // @ApiMember(Description="Brand", IsRequired=true) String? brand; /** * Serial Number */ // @ApiMember(Description="Serial Number", IsRequired=true) String? serialNumber; GetSerialNumberHistory({this.brand,this.serialNumber}); GetSerialNumberHistory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand']; serialNumber = json['serialNumber']; return this; } Map toJson() => { 'brand': brand, 'serialNumber': serialNumber }; createResponse() => GetSerialNumberHistoryResponse(); getResponseTypeName() => "GetSerialNumberHistoryResponse"; getTypeName() => "GetSerialNumberHistory"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'SerialNumberList': TypeInfo(TypeOf.Class, create:() => SerialNumberList()), 'GetSerialNumberHistoryResponse': TypeInfo(TypeOf.Class, create:() => GetSerialNumberHistoryResponse()), 'GetSerialNumberHistory': TypeInfo(TypeOf.Class, create:() => GetSerialNumberHistory()), });