/* Options: Date: 2024-11-21 11:40:19 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: ForgotUserPassword.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum KeyCloakRealm { BookMore, BookMoreAdmin, SuperAdmin, } class ForgotUserPasswordResponse implements IConvertible { String? Email; dynamic? ResponseStatus; ForgotUserPasswordResponse({this.Email,this.ResponseStatus}); ForgotUserPasswordResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Email = json['Email']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'dynamic',context!); return this; } Map toJson() => { 'Email': Email, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'dynamic',context!) }; getTypeName() => "ForgotUserPasswordResponse"; TypeContext? context = _ctx; } // @Route("/users/forgotpassword", "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 ForgotUserPassword implements IReturn, IConvertible, IPost { // @ApiMember(IsRequired=true) String? Email; /** * 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; ForgotUserPassword({this.Email,this.Realm}); ForgotUserPassword.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Email = json['Email']; Realm = JsonConverters.fromJson(json['Realm'],'KeyCloakRealm',context!); return this; } Map toJson() => { 'Email': Email, 'Realm': JsonConverters.toJson(Realm,'KeyCloakRealm',context!) }; createResponse() => ForgotUserPasswordResponse(); getResponseTypeName() => "ForgotUserPasswordResponse"; getTypeName() => "ForgotUserPassword"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'KeyCloakRealm': TypeInfo(TypeOf.Enum, enumValues:KeyCloakRealm.values), 'ForgotUserPasswordResponse': TypeInfo(TypeOf.Class, create:() => ForgotUserPasswordResponse()), 'ForgotUserPassword': TypeInfo(TypeOf.Class, create:() => ForgotUserPassword()), });