/* Options: Date: 2026-05-19 10:45:25 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: GetPosGroup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Scope implements IConvertible { /** * Scope Code - combination of BU / Brand */ // @ApiMember(Description="Scope Code - combination of BU / Brand", IsRequired=true) String? scopeCode; /** * Business Unit Code */ // @ApiMember(Description="Business Unit Code", IsRequired=true) String? buCode; /** * Brand Trigram */ // @ApiMember(Description="Brand Trigram", IsRequired=true) String? brand; /** * Description of the combination */ // @ApiMember(Description="Description of the combination", IsRequired=true) String? description; Scope({this.scopeCode,this.buCode,this.brand,this.description}); Scope.fromJson(Map json) { fromMap(json); } fromMap(Map json) { scopeCode = json['scopeCode']; buCode = json['buCode']; brand = json['brand']; description = json['description']; return this; } Map toJson() => { 'scopeCode': scopeCode, 'buCode': buCode, 'brand': brand, 'description': description }; getTypeName() => "Scope"; TypeContext? context = _ctx; } class PosGroup extends Scope implements IConvertible { /** * Pos Group code */ // @ApiMember(Description="Pos Group code", IsRequired=true) int? posGroupCode; /** * Pos Group Description */ // @ApiMember(Description="Pos Group Description", IsRequired=true) String? posGroupDs; /** * Define if user is authorized to this pos group */ // @ApiMember(Description="Define if user is authorized to this pos group", IsRequired=true) bool? isAuthorized; PosGroup({this.posGroupCode,this.posGroupDs,this.isAuthorized}); PosGroup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); posGroupCode = json['posGroupCode']; posGroupDs = json['posGroupDs']; isAuthorized = json['isAuthorized']; return this; } Map toJson() => super.toJson()..addAll({ 'posGroupCode': posGroupCode, 'posGroupDs': posGroupDs, 'isAuthorized': isAuthorized }); getTypeName() => "PosGroup"; TypeContext? context = _ctx; } class GetPosGroupResponse extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; PosGroup operator [](int index) => l[index]; void operator []=(int index, PosGroup value) { l[index] = value; } GetPosGroupResponse(); GetPosGroupResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "GetPosGroupResponse"; TypeContext? context = _ctx; } // @Route("/posGroups", "GET") class GetPosGroup implements IReturn, IConvertible, IGet { /** * Brand Trigram */ // @ApiMember(Description="Brand Trigram", IsRequired=true) String? brand; /** * Business Unit Code */ // @ApiMember(Description="Business Unit Code", IsRequired=true) String? buCode; GetPosGroup({this.brand,this.buCode}); GetPosGroup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand']; buCode = json['buCode']; return this; } Map toJson() => { 'brand': brand, 'buCode': buCode }; createResponse() => GetPosGroupResponse(); getResponseTypeName() => "GetPosGroupResponse"; getTypeName() => "GetPosGroup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'Scope': TypeInfo(TypeOf.Class, create:() => Scope()), 'PosGroup': TypeInfo(TypeOf.Class, create:() => PosGroup()), 'GetPosGroupResponse': TypeInfo(TypeOf.Class, create:() => GetPosGroupResponse()), 'GetPosGroup': TypeInfo(TypeOf.Class, create:() => GetPosGroup()), });