/* Options: Date: 2026-08-27 07:10:40 Version: 10.08 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: GetProductByHash.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetProductByHashResponse implements IConvertible { /** * Article Code, which is more of Reference Id */ // @ApiMember(Description="Article Code, which is more of Reference Id ", IsRequired=true) String articleCode = ""; /** * Serial Number */ // @ApiMember(Description="Serial Number", IsRequired=true) String serialNumber = ""; GetProductByHashResponse({this.articleCode="",this.serialNumber=""}); GetProductByHashResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { articleCode = json['articleCode'] ?? ""; serialNumber = json['serialNumber'] ?? ""; return this; } Map toJson() => { 'articleCode': articleCode, 'serialNumber': serialNumber }; getTypeName() => "GetProductByHashResponse"; TypeContext? context = _ctx; } // @Route("/hashlookup/{hash}", "GET") class GetProductByHash implements IReturn, IConvertible, IGet { /** * Hash String */ // @ApiMember(Description="Hash String", IsRequired=true) String hash = ""; GetProductByHash({this.hash=""}); GetProductByHash.fromJson(Map json) { fromMap(json); } fromMap(Map json) { hash = json['hash'] ?? ""; return this; } Map toJson() => { 'hash': hash }; createResponse() => GetProductByHashResponse(); getResponseTypeName() => "GetProductByHashResponse"; getTypeName() => "GetProductByHash"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'GetProductByHashResponse': TypeInfo(TypeOf.Class, create:() => GetProductByHashResponse()), 'GetProductByHash': TypeInfo(TypeOf.Class, create:() => GetProductByHash()), });