/* Options: Date: 2024-11-21 11:40:31 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: LogoutUser.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum KeyCloakRealm { BookMore, BookMoreAdmin, SuperAdmin, } // @Route("/users/logout", "POST") class LogoutUser implements IConvertible, IPost { /** * The user realm for identity server. BookMore = 1, BookMoreAdmin = 2 */ // @ApiMember(Description="The user realm for identity server. BookMore = 1, BookMoreAdmin = 2 ", IsRequired=true) KeyCloakRealm? Realm; /** * The user email to log out. */ // @ApiMember(Description="The user email to log out.") String? Email; LogoutUser({this.Realm,this.Email}); LogoutUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Realm = JsonConverters.fromJson(json['Realm'],'KeyCloakRealm',context!); Email = json['Email']; return this; } Map toJson() => { 'Realm': JsonConverters.toJson(Realm,'KeyCloakRealm',context!), 'Email': Email }; getTypeName() => "LogoutUser"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'KeyCloakRealm': TypeInfo(TypeOf.Enum, enumValues:KeyCloakRealm.values), 'LogoutUser': TypeInfo(TypeOf.Class, create:() => LogoutUser()), });