/* Options: Date: 2025-09-03 18:56:00 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: GenerateMachineApiKeyRequest.* //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; } abstract class ITenantedRequest { String? organisationId; } abstract class PostOperationTenanted extends PostOperationUnTenanted implements ITenantedRequest { String? organisationId; PostOperationTenanted({this.organisationId}); PostOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "PostOperationTenanted<$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 GenerateMachineApiKeyResponse implements IConvertible { ApiKey? apiKey; ResponseStatus? responseStatus; GenerateMachineApiKeyResponse({this.apiKey,this.responseStatus}); GenerateMachineApiKeyResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { apiKey = JsonConverters.fromJson(json['apiKey'],'ApiKey',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'apiKey': JsonConverters.toJson(apiKey,'ApiKey',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GenerateMachineApiKeyResponse"; TypeContext? context = _ctx; } // @Route("/machines/{Id}/generate-api-key", "POST") class GenerateMachineApiKeyRequest extends PostOperationTenanted implements IReturn, IConvertible { String? id; GenerateMachineApiKeyRequest({this.id}); GenerateMachineApiKeyRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => GenerateMachineApiKeyResponse(); getResponseTypeName() => "GenerateMachineApiKeyResponse"; getTypeName() => "GenerateMachineApiKeyRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'PostOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'ApiKey': TypeInfo(TypeOf.Class, create:() => ApiKey()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'GenerateMachineApiKeyResponse': TypeInfo(TypeOf.Class, create:() => GenerateMachineApiKeyResponse()), 'GenerateMachineApiKeyRequest': TypeInfo(TypeOf.Class, create:() => GenerateMachineApiKeyRequest()), });