/* Options: Date: 2024-12-01 03:39:31 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: AuthorizeUser.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IAuthorizeUser { String? bearerToken; String? profile; String? service; } class Setting implements IConvertible { String? name; String? stringValue; bool? booleanValue; String? dataType; Setting({this.name,this.stringValue,this.booleanValue,this.dataType}); Setting.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; stringValue = json['stringValue']; booleanValue = json['booleanValue']; dataType = json['dataType']; return this; } Map toJson() => { 'name': name, 'stringValue': stringValue, 'booleanValue': booleanValue, 'dataType': dataType }; getTypeName() => "Setting"; TypeContext? context = _ctx; } class AuthorizeBaseResponse implements IConvertible { bool? isAuthorized; List? settings; int? suggestedStatusCode; String? suggestedResponseMessage; String? reason; String? customerId; AuthorizeBaseResponse({this.isAuthorized,this.settings,this.suggestedStatusCode,this.suggestedResponseMessage,this.reason,this.customerId}); AuthorizeBaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isAuthorized = json['isAuthorized']; settings = JsonConverters.fromJson(json['settings'],'List',context!); suggestedStatusCode = json['suggestedStatusCode']; suggestedResponseMessage = json['suggestedResponseMessage']; reason = json['reason']; customerId = json['customerId']; return this; } Map toJson() => { 'isAuthorized': isAuthorized, 'settings': JsonConverters.toJson(settings,'List',context!), 'suggestedStatusCode': suggestedStatusCode, 'suggestedResponseMessage': suggestedResponseMessage, 'reason': reason, 'customerId': customerId }; getTypeName() => "AuthorizeBaseResponse"; TypeContext? context = _ctx; } 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 AuthorizeUserResponse extends AuthorizeBaseResponse implements IAuthorizeUserResponse, IConvertible { String? userObjectId; String? userTenant; String? userTenantId; AuthorizeUserResponse({this.userObjectId,this.userTenant,this.userTenantId}); AuthorizeUserResponse.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() => "AuthorizeUserResponse"; TypeContext? context = _ctx; } // @Route("/authorizeuser/{Service}/{Profile}", "GET,POST") class AuthorizeUser implements IReturn, IAuthorizeUser, IConvertible, IPost { // @ApiMember(IsRequired=true) String? bearerToken; // @ApiMember(IsRequired=true, ParameterType="path") String? profile; // @ApiMember(IsRequired=true, ParameterType="path") String? service; // @ApiMember(Name="X-WAAPI-CONTEXT", ParameterType="header") String? customerContext; AuthorizeUser({this.bearerToken,this.profile,this.service,this.customerContext}); AuthorizeUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { bearerToken = json['bearerToken']; profile = json['profile']; service = json['service']; customerContext = json['customerContext']; return this; } Map toJson() => { 'bearerToken': bearerToken, 'profile': profile, 'service': service, 'customerContext': customerContext }; createResponse() => AuthorizeUserResponse(); getResponseTypeName() => "AuthorizeUserResponse"; getTypeName() => "AuthorizeUser"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'nkapi_sgepz3_auth.azurewebsites.net', types: { 'IAuthorizeUser': TypeInfo(TypeOf.Interface), 'Setting': TypeInfo(TypeOf.Class, create:() => Setting()), 'AuthorizeBaseResponse': TypeInfo(TypeOf.Class, create:() => AuthorizeBaseResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'IAuthorizeUserResponse': TypeInfo(TypeOf.Interface), 'IAuthorizeBaseResponse': TypeInfo(TypeOf.Interface), 'AuthorizeUserResponse': TypeInfo(TypeOf.Class, create:() => AuthorizeUserResponse()), 'AuthorizeUser': TypeInfo(TypeOf.Class, create:() => AuthorizeUser()), });