/* Options: Date: 2025-01-08 03:19:28 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateGenerationApiProvider.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GenerationApiProvider extends AiProviderBase implements IConvertible { // @References(typeof(GenerationApiType)) int? generationApiTypeId; GenerationApiType? type; GenerationApiProvider({this.generationApiTypeId,this.type}); GenerationApiProvider.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); generationApiTypeId = json['generationApiTypeId']; type = JsonConverters.fromJson(json['type'],'GenerationApiType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'generationApiTypeId': generationApiTypeId, 'type': JsonConverters.toJson(type,'GenerationApiType',context!) }); getTypeName() => "GenerationApiProvider"; TypeContext? context = _ctx; } class CreateGenerationApiProvider implements IReturn, ICreateDb, IConvertible, IPost { String? name; String? apiKey; String? apiKeyHeader; String? apiBaseUrl; String? heartbeatUrl; int? concurrency; int? priority; bool? enabled; DateTime? offlineDate; List? models; int? generationApiTypeId; CreateGenerationApiProvider({this.name,this.apiKey,this.apiKeyHeader,this.apiBaseUrl,this.heartbeatUrl,this.concurrency,this.priority,this.enabled,this.offlineDate,this.models,this.generationApiTypeId}); CreateGenerationApiProvider.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; apiKey = json['apiKey']; apiKeyHeader = json['apiKeyHeader']; apiBaseUrl = json['apiBaseUrl']; heartbeatUrl = json['heartbeatUrl']; concurrency = json['concurrency']; priority = json['priority']; enabled = json['enabled']; offlineDate = JsonConverters.fromJson(json['offlineDate'],'DateTime',context!); models = JsonConverters.fromJson(json['models'],'List',context!); generationApiTypeId = json['generationApiTypeId']; return this; } Map toJson() => { 'name': name, 'apiKey': apiKey, 'apiKeyHeader': apiKeyHeader, 'apiBaseUrl': apiBaseUrl, 'heartbeatUrl': heartbeatUrl, 'concurrency': concurrency, 'priority': priority, 'enabled': enabled, 'offlineDate': JsonConverters.toJson(offlineDate,'DateTime',context!), 'models': JsonConverters.toJson(models,'List',context!), 'generationApiTypeId': generationApiTypeId }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "CreateGenerationApiProvider"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'GenerationApiProvider': TypeInfo(TypeOf.Class, create:() => GenerationApiProvider()), 'GenerationApiType': TypeInfo(TypeOf.Class, create:() => GenerationApiType()), 'CreateGenerationApiProvider': TypeInfo(TypeOf.Class, create:() => CreateGenerationApiProvider()), });