/* Options: Date: 2026-04-04 01:18:46 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SwitchProfile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SettingModel implements IConvertible { String? SettingId; String? SettingName; String? SettingValue; SettingModel({this.SettingId,this.SettingName,this.SettingValue}); SettingModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SettingId = json['SettingId']; SettingName = json['SettingName']; SettingValue = json['SettingValue']; return this; } Map toJson() => { 'SettingId': SettingId, 'SettingName': SettingName, 'SettingValue': SettingValue }; getTypeName() => "SettingModel"; TypeContext? context = _ctx; } class UpdateQuadrantResponse implements IConvertible { String? PerspectiveSessionId; List? Settings; List? Permissions; ResponseStatus? ResponseStatus; UpdateQuadrantResponse({this.PerspectiveSessionId,this.Settings,this.Permissions,this.ResponseStatus}); UpdateQuadrantResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PerspectiveSessionId = json['PerspectiveSessionId']; Settings = JsonConverters.fromJson(json['Settings'],'List',context!); Permissions = JsonConverters.fromJson(json['Permissions'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'PerspectiveSessionId': PerspectiveSessionId, 'Settings': JsonConverters.toJson(Settings,'List',context!), 'Permissions': JsonConverters.toJson(Permissions,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "UpdateQuadrantResponse"; TypeContext? context = _ctx; } /** * Switch to the specified profile - create a new session, retrieve settings and return new JWT Token */ // @Route("/profiles/{UserProfileId}/switch/token") // @Route("/profiles/{UserProfileId}/switch") // @Api(Description="Switch to the specified profile - create a new session, retrieve settings and return new JWT Token") class SwitchProfile implements IReturn, IConvertible, IPut { /** * Id of the user profile to switch to. */ // @ApiMember(Description="Id of the user profile to switch to.", Name="UserProfileId") String? UserProfileId; /** * Has 'Remember Me' option been selected? */ // @ApiMember(Description="Has 'Remember Me' option been selected?", Name="IsPersistent") bool? IsPersistent; SwitchProfile({this.UserProfileId,this.IsPersistent}); SwitchProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserProfileId = json['UserProfileId']; IsPersistent = json['IsPersistent']; return this; } Map toJson() => { 'UserProfileId': UserProfileId, 'IsPersistent': IsPersistent }; createResponse() => UpdateQuadrantResponse(); getResponseTypeName() => "UpdateQuadrantResponse"; getTypeName() => "SwitchProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'SettingModel': TypeInfo(TypeOf.Class, create:() => SettingModel()), 'UpdateQuadrantResponse': TypeInfo(TypeOf.Class, create:() => UpdateQuadrantResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SwitchProfile': TypeInfo(TypeOf.Class, create:() => SwitchProfile()), });