/* Options: Date: 2026-08-27 07:10:39 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: GetHobbies.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Hobby implements IConvertible { /** * Hobby description */ // @ApiMember(Description="Hobby description", IsRequired=true) String hobby = ""; /** * SAP Hobby ID, e.g. 'ART' */ // @ApiMember(Description="SAP Hobby ID, e.g. 'ART'", IsRequired=true) String sapHobbyId = ""; /** * Hobby description translation */ // @ApiMember(Description="Hobby description translation") String? translation; Hobby({this.hobby="",this.sapHobbyId="",this.translation}); Hobby.fromJson(Map json) { fromMap(json); } fromMap(Map json) { hobby = json['hobby'] ?? ""; sapHobbyId = json['sapHobbyId'] ?? ""; translation = json['translation']; return this; } Map toJson() => { 'hobby': hobby, 'sapHobbyId': sapHobbyId, 'translation': translation }; getTypeName() => "Hobby"; TypeContext? context = _ctx; } class GetHobbiesResponse extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; Hobby operator [](int index) => l[index]; void operator []=(int index, Hobby value) { l[index] = value; } GetHobbiesResponse(); GetHobbiesResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "GetHobbiesResponse"; TypeContext? context = _ctx; } // @Route("/hobbies/{brand}/{posCode}", "GET") class GetHobbies implements IReturn, IConvertible, IGet { /** * Brand */ // @ApiMember(Description="Brand", IsRequired=true) String brand = ""; /** * POS Legacy */ // @ApiMember(Description="POS Legacy", IsRequired=true) String posCode = ""; GetHobbies({this.brand="",this.posCode=""}); GetHobbies.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand'] ?? ""; posCode = json['posCode'] ?? ""; return this; } Map toJson() => { 'brand': brand, 'posCode': posCode }; createResponse() => GetHobbiesResponse(); getResponseTypeName() => "GetHobbiesResponse"; getTypeName() => "GetHobbies"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'Hobby': TypeInfo(TypeOf.Class, create:() => Hobby()), 'GetHobbiesResponse': TypeInfo(TypeOf.Class, create:() => GetHobbiesResponse()), 'GetHobbies': TypeInfo(TypeOf.Class, create:() => GetHobbies()), });