/* Options: Date: 2025-09-03 18:55:10 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://foundrystage-api-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateApiKeyRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PostOperationUnTenanted implements IPost { PostOperationUnTenanted(); PostOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PostOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } class ApiKey implements IIdentifiableResource, IConvertible { String? userId; String? description; DateTime? expiresUtc; String? key; String? id; ApiKey({this.userId,this.description,this.expiresUtc,this.key,this.id}); ApiKey.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userId = json['userId']; description = json['description']; expiresUtc = JsonConverters.fromJson(json['expiresUtc'],'DateTime',context!); key = json['key']; id = json['id']; return this; } Map toJson() => { 'userId': userId, 'description': description, 'expiresUtc': JsonConverters.toJson(expiresUtc,'DateTime',context!), 'key': key, 'id': id }; getTypeName() => "ApiKey"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class CreateApiKeyResponse implements IConvertible { ResponseStatus? responseStatus; ApiKey? apiKey; CreateApiKeyResponse({this.responseStatus,this.apiKey}); CreateApiKeyResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); apiKey = JsonConverters.fromJson(json['apiKey'],'ApiKey',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'apiKey': JsonConverters.toJson(apiKey,'ApiKey',context!) }; getTypeName() => "CreateApiKeyResponse"; TypeContext? context = _ctx; } // @Route("/auth/apikey", "POST") class CreateApiKeyRequest extends PostOperationUnTenanted implements IReturn, IConvertible { String? description; DateTime? expiresUtc; CreateApiKeyRequest({this.description,this.expiresUtc}); CreateApiKeyRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); description = json['description']; expiresUtc = JsonConverters.fromJson(json['expiresUtc'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'description': description, 'expiresUtc': JsonConverters.toJson(expiresUtc,'DateTime',context!) }); createResponse() => CreateApiKeyResponse(); getResponseTypeName() => "CreateApiKeyResponse"; getTypeName() => "CreateApiKeyRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'ApiKey': TypeInfo(TypeOf.Class, create:() => ApiKey()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'CreateApiKeyResponse': TypeInfo(TypeOf.Class, create:() => CreateApiKeyResponse()), 'CreateApiKeyRequest': TypeInfo(TypeOf.Class, create:() => CreateApiKeyRequest()), });