/* Options: Date: 2024-12-01 03:57:38 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: GetAuthorizationPost.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IGetAuthorization { String? serviceName; String? tokenString; String? userTokenString; String? profile; } class GetAuthorizationResponse implements IConvertible { bool? isAuthorized; Map? parameters; String? userObjectId; String? userTenant; GetAuthorizationResponse({this.isAuthorized,this.parameters,this.userObjectId,this.userTenant}); GetAuthorizationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isAuthorized = json['isAuthorized']; parameters = JsonConverters.toStringMap(json['parameters']); userObjectId = json['userObjectId']; userTenant = json['userTenant']; return this; } Map toJson() => { 'isAuthorized': isAuthorized, 'parameters': parameters, 'userObjectId': userObjectId, 'userTenant': userTenant }; getTypeName() => "GetAuthorizationResponse"; TypeContext? context = _ctx; } // @Route("/authorization", "POST") class GetAuthorizationPost implements IReturn, IGetAuthorization, IConvertible, IPost { // @apiMember() String? serviceName; // @apiMember() String? tokenString; // @apiMember() String? userTokenString; // @apiMember() String? profile; GetAuthorizationPost({this.serviceName,this.tokenString,this.userTokenString,this.profile}); GetAuthorizationPost.fromJson(Map json) { fromMap(json); } fromMap(Map json) { serviceName = json['serviceName']; tokenString = json['tokenString']; userTokenString = json['userTokenString']; profile = json['profile']; return this; } Map toJson() => { 'serviceName': serviceName, 'tokenString': tokenString, 'userTokenString': userTokenString, 'profile': profile }; createResponse() => GetAuthorizationResponse(); getResponseTypeName() => "GetAuthorizationResponse"; getTypeName() => "GetAuthorizationPost"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'nkapi_sgepz3_auth.azurewebsites.net', types: { 'IGetAuthorization': TypeInfo(TypeOf.Interface), 'GetAuthorizationResponse': TypeInfo(TypeOf.Class, create:() => GetAuthorizationResponse()), 'GetAuthorizationPost': TypeInfo(TypeOf.Class, create:() => GetAuthorizationPost()), });