/* Options: Date: 2024-12-01 03:55:18 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: GetAuthorization.* //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/{ServiceName}/{TokenString}", "GET") class GetAuthorization implements IReturn, IGetAuthorization, IConvertible, IGet { // @ApiMember(IsRequired=true, ParameterType="path", Verb="GET") String? serviceName; // @ApiMember(IsRequired=true, ParameterType="path", Verb="GET") String? tokenString; // @apiMember() String? userTokenString; // @apiMember() String? profile; GetAuthorization({this.serviceName,this.tokenString,this.userTokenString,this.profile}); GetAuthorization.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() => "GetAuthorization"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'nkapi_sgepz3_auth.azurewebsites.net', types: { 'IGetAuthorization': TypeInfo(TypeOf.Interface), 'GetAuthorizationResponse': TypeInfo(TypeOf.Class, create:() => GetAuthorizationResponse()), 'GetAuthorization': TypeInfo(TypeOf.Class, create:() => GetAuthorization()), });