/* Options: Date: 2025-09-03 20:29:30 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://foundrystage-api-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EnableTwoFactorAuthenticationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PutOperationUnTenanted implements IPut { PutOperationUnTenanted(); PutOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PutOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } class EnableTwoFactorAuthenticationResponse implements IConvertible { ResponseStatus? responseStatus; String? bearerToken; String? refreshToken; EnableTwoFactorAuthenticationResponse({this.responseStatus,this.bearerToken,this.refreshToken}); EnableTwoFactorAuthenticationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); bearerToken = json['bearerToken']; refreshToken = json['refreshToken']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'bearerToken': bearerToken, 'refreshToken': refreshToken }; getTypeName() => "EnableTwoFactorAuthenticationResponse"; TypeContext? context = _ctx; } // @Route("/users/2fa/enable", "PUT") class EnableTwoFactorAuthenticationRequest extends PutOperationUnTenanted implements IReturn, IConvertible { String? code; EnableTwoFactorAuthenticationRequest({this.code}); EnableTwoFactorAuthenticationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); code = json['code']; return this; } Map toJson() => super.toJson()..addAll({ 'code': code }); createResponse() => EnableTwoFactorAuthenticationResponse(); getResponseTypeName() => "EnableTwoFactorAuthenticationResponse"; getTypeName() => "EnableTwoFactorAuthenticationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'PutOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'EnableTwoFactorAuthenticationResponse': TypeInfo(TypeOf.Class, create:() => EnableTwoFactorAuthenticationResponse()), 'EnableTwoFactorAuthenticationRequest': TypeInfo(TypeOf.Class, create:() => EnableTwoFactorAuthenticationRequest()), });