/* Options: Date: 2025-12-06 06:11:03 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sbbet.ath.cx //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SetUserRoles.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RecordList extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; T operator [](int index) => l[index]; void operator []=(int index, T value) { l[index] = value; } RecordList(); RecordList.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "RecordList<$T>"; TypeContext? context = _ctx; } // @Route("/cmd/users/setRoles", "POST") class SetUserRoles implements IReturn, IConvertible, IPost { String? id; RecordList? roles; SetUserRoles({this.id,this.roles}); SetUserRoles.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; roles = JsonConverters.fromJson(json['roles'],'RecordList',context!); return this; } Map toJson() => { 'id': id, 'roles': JsonConverters.toJson(roles,'RecordList',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "SetUserRoles"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'RecordList': TypeInfo(TypeOf.GenericDef,create:() => RecordList()), 'SetUserRoles': TypeInfo(TypeOf.Class, create:() => SetUserRoles()), 'RecordList': TypeInfo(TypeOf.Class, create:() => RecordList()), });