/* Options: Date: 2024-11-21 12:07:25 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: UpdateUserEmail.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum KeyCloakRealm { BookMore, BookMoreAdmin, SuperAdmin, } class UpdateUserEmailResponse implements IConvertible { dynamic? ResponseStatus; String? UserId; String? Email; UpdateUserEmailResponse({this.ResponseStatus,this.UserId,this.Email}); UpdateUserEmailResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'dynamic',context!); UserId = json['UserId']; Email = json['Email']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'dynamic',context!), 'UserId': UserId, 'Email': Email }; getTypeName() => "UpdateUserEmailResponse"; TypeContext? context = _ctx; } // @Route("/users/confirmemail", "POST") // @ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) class UpdateUserEmail implements IReturn, IConvertible, IPost { // @ApiMember(IsRequired=true) String? Token; /** * 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; UpdateUserEmail({this.Token,this.Realm}); UpdateUserEmail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Token = json['Token']; Realm = JsonConverters.fromJson(json['Realm'],'KeyCloakRealm',context!); return this; } Map toJson() => { 'Token': Token, 'Realm': JsonConverters.toJson(Realm,'KeyCloakRealm',context!) }; createResponse() => UpdateUserEmailResponse(); getResponseTypeName() => "UpdateUserEmailResponse"; getTypeName() => "UpdateUserEmail"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'KeyCloakRealm': TypeInfo(TypeOf.Enum, enumValues:KeyCloakRealm.values), 'UpdateUserEmailResponse': TypeInfo(TypeOf.Class, create:() => UpdateUserEmailResponse()), 'UpdateUserEmail': TypeInfo(TypeOf.Class, create:() => UpdateUserEmail()), });