/* Options: Date: 2024-12-01 03:42:39 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: AuthorizeToken.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IAuthorizeToken { String? tokenString; 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; } class AuthorizeTokenResponse extends AuthorizeBaseResponse implements IConvertible { AuthorizeTokenResponse(); AuthorizeTokenResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "AuthorizeTokenResponse"; TypeContext? context = _ctx; } // @Route("/authorizetoken/{Service}/{TokenString}", "GET,POST") class AuthorizeToken implements IReturn, IAuthorizeToken, IConvertible, IPost { // @ApiMember(IsRequired=true, ParameterType="path") String? tokenString; // @ApiMember(IsRequired=true, ParameterType="path") String? service; AuthorizeToken({this.tokenString,this.service}); AuthorizeToken.fromJson(Map json) { fromMap(json); } fromMap(Map json) { tokenString = json['tokenString']; service = json['service']; return this; } Map toJson() => { 'tokenString': tokenString, 'service': service }; createResponse() => AuthorizeTokenResponse(); getResponseTypeName() => "AuthorizeTokenResponse"; getTypeName() => "AuthorizeToken"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'nkapi_sgepz3_auth.azurewebsites.net', types: { 'IAuthorizeToken': TypeInfo(TypeOf.Interface), 'Setting': TypeInfo(TypeOf.Class, create:() => Setting()), 'AuthorizeBaseResponse': TypeInfo(TypeOf.Class, create:() => AuthorizeBaseResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AuthorizeTokenResponse': TypeInfo(TypeOf.Class, create:() => AuthorizeTokenResponse()), 'AuthorizeToken': TypeInfo(TypeOf.Class, create:() => AuthorizeToken()), });