/* Options: Date: 2026-08-27 07:10:42 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: GetSalesReps.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SalesRep implements IConvertible { /** * The first name of the sales representative. */ // @ApiMember(Description="The first name of the sales representative.", IsRequired=true) String firstName = ""; /** * The last name of the sales representative. */ // @ApiMember(Description="The last name of the sales representative.", IsRequired=true) String lastName = ""; /** * The email address of the sales representative. */ // @ApiMember(Description="The email address of the sales representative.", IsRequired=true) String email = ""; /** * The unique user ID of the sales representative. */ // @ApiMember(Description="The unique user ID of the sales representative.", IsRequired=true) String userId = ""; /** * Whether the sales representative's account is locked. */ // @ApiMember(Description="Whether the sales representative's account is locked.", IsRequired=true) bool? accountLocked; /** * Whether the sales representative's account is pinned. */ // @ApiMember(Description="Whether the sales representative's account is pinned.", IsRequired=true) bool? isPinned; SalesRep({this.firstName="",this.lastName="",this.email="",this.userId="",this.accountLocked,this.isPinned}); SalesRep.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName'] ?? ""; lastName = json['lastName'] ?? ""; email = json['email'] ?? ""; userId = json['userId'] ?? ""; accountLocked = json['accountLocked']; isPinned = json['isPinned']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'email': email, 'userId': userId, 'accountLocked': accountLocked, 'isPinned': isPinned }; getTypeName() => "SalesRep"; TypeContext? context = _ctx; } class GetSalesRepsResponse extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; SalesRep operator [](int index) => l[index]; void operator []=(int index, SalesRep value) { l[index] = value; } GetSalesRepsResponse(); GetSalesRepsResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "GetSalesRepsResponse"; TypeContext? context = _ctx; } // @Route("/salesReps/{brand}/{posCode}", "GET") class GetSalesReps implements IReturn, IConvertible, IGet { /** * Brand Triagram, e.g. CAR, IWC, VAC */ // @ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true) String brand = ""; /** * Point of Sale Code, e.g. ES100:102048 */ // @ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true) String posCode = ""; /** * Booster Customer Id */ // @ApiMember(Description="Booster Customer Id") int? boosterCustomerId; /** * Whether the sales representative's account is locked. */ // @ApiMember(Description="Whether the sales representative's account is locked.") bool? accountLocked; /** * Whether the sales representative's account is pinned. */ // @ApiMember(Description="Whether the sales representative's account is pinned.") bool? isPinned; GetSalesReps({this.brand="",this.posCode="",this.boosterCustomerId,this.accountLocked,this.isPinned}); GetSalesReps.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand'] ?? ""; posCode = json['posCode'] ?? ""; boosterCustomerId = json['boosterCustomerId']; accountLocked = json['accountLocked']; isPinned = json['isPinned']; return this; } Map toJson() => { 'brand': brand, 'posCode': posCode, 'boosterCustomerId': boosterCustomerId, 'accountLocked': accountLocked, 'isPinned': isPinned }; createResponse() => GetSalesRepsResponse(); getResponseTypeName() => "GetSalesRepsResponse"; getTypeName() => "GetSalesReps"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'SalesRep': TypeInfo(TypeOf.Class, create:() => SalesRep()), 'GetSalesRepsResponse': TypeInfo(TypeOf.Class, create:() => GetSalesRepsResponse()), 'GetSalesReps': TypeInfo(TypeOf.Class, create:() => GetSalesReps()), });