/* Options: Date: 2024-12-01 03:43:09 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://nkapi-sgepz3-auth.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AuthorizeUserFast.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IAuthorizeUser { String? bearerToken; String? profile; String? service; } abstract class IAuthorizeUserResponse extends IAuthorizeBaseResponse { String? userObjectId; String? userTenant; String? userTenantId; } abstract class IAuthorizeBaseResponse { bool? isAuthorized; int? suggestedStatusCode; String? suggestedResponseMessage; String? reason; String? customerId; } class AuthorizeFastBaseResponse implements IConvertible { bool? isAuthorized; Map? settings; int? suggestedStatusCode; String? suggestedResponseMessage; String? reason; String? customerId; AuthorizeFastBaseResponse({this.isAuthorized,this.settings,this.suggestedStatusCode,this.suggestedResponseMessage,this.reason,this.customerId}); AuthorizeFastBaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isAuthorized = json['isAuthorized']; settings = JsonConverters.toStringMap(json['settings']); suggestedStatusCode = json['suggestedStatusCode']; suggestedResponseMessage = json['suggestedResponseMessage']; reason = json['reason']; customerId = json['customerId']; return this; } Map toJson() => { 'isAuthorized': isAuthorized, 'settings': settings, 'suggestedStatusCode': suggestedStatusCode, 'suggestedResponseMessage': suggestedResponseMessage, 'reason': reason, 'customerId': customerId }; getTypeName() => "AuthorizeFastBaseResponse"; TypeContext? context = _ctx; } class AuthorizeUserFastResponse extends AuthorizeFastBaseResponse implements IAuthorizeUserResponse, IConvertible { String? userObjectId; String? userTenant; String? userTenantId; AuthorizeUserFastResponse({this.userObjectId,this.userTenant,this.userTenantId}); AuthorizeUserFastResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); userObjectId = json['userObjectId']; userTenant = json['userTenant']; userTenantId = json['userTenantId']; return this; } Map toJson() => super.toJson()..addAll({ 'userObjectId': userObjectId, 'userTenant': userTenant, 'userTenantId': userTenantId }); getTypeName() => "AuthorizeUserFastResponse"; TypeContext? context = _ctx; } // @Route("/authorizeuserfast/{Service}/{Profile}", "POST") class AuthorizeUserFast implements IReturn, IAuthorizeUser, IConvertible, IPost { String? bearerToken; String? customerContext; // @ApiMember(ExcludeInSchema=true, IsRequired=true, ParameterType="path") String? profile; // @ApiMember(ExcludeInSchema=true, IsRequired=true, ParameterType="path") String? service; AuthorizeUserFast({this.bearerToken,this.customerContext,this.profile,this.service}); AuthorizeUserFast.fromJson(Map json) { fromMap(json); } fromMap(Map json) { bearerToken = json['bearerToken']; customerContext = json['customerContext']; profile = json['profile']; service = json['service']; return this; } Map toJson() => { 'bearerToken': bearerToken, 'customerContext': customerContext, 'profile': profile, 'service': service }; createResponse() => AuthorizeUserFastResponse(); getResponseTypeName() => "AuthorizeUserFastResponse"; getTypeName() => "AuthorizeUserFast"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'nkapi_sgepz3_auth.azurewebsites.net', types: { 'IAuthorizeUser': TypeInfo(TypeOf.Interface), 'IAuthorizeUserResponse': TypeInfo(TypeOf.Interface), 'IAuthorizeBaseResponse': TypeInfo(TypeOf.Interface), 'AuthorizeFastBaseResponse': TypeInfo(TypeOf.Class, create:() => AuthorizeFastBaseResponse()), 'AuthorizeUserFastResponse': TypeInfo(TypeOf.Class, create:() => AuthorizeUserFastResponse()), 'AuthorizeUserFast': TypeInfo(TypeOf.Class, create:() => AuthorizeUserFast()), });