/* Options: Date: 2025-01-08 03:15:54 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: QueryGenerationApiTypes.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum AiServiceProvider { Replicate, Comfy, OpenAi, } class ApiTypeBase implements IConvertible { int? id; String? apiBaseUrl; String? apiKeyHeader; String? name; String? website; String? icon; Map? apiModels = {}; AiServiceProvider? provider; ApiTypeBase({this.id,this.apiBaseUrl,this.apiKeyHeader,this.name,this.website,this.icon,this.apiModels,this.provider}); ApiTypeBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; apiBaseUrl = json['apiBaseUrl']; apiKeyHeader = json['apiKeyHeader']; name = json['name']; website = json['website']; icon = json['icon']; apiModels = JsonConverters.toStringMap(json['apiModels']); provider = JsonConverters.fromJson(json['provider'],'AiServiceProvider',context!); return this; } Map toJson() => { 'id': id, 'apiBaseUrl': apiBaseUrl, 'apiKeyHeader': apiKeyHeader, 'name': name, 'website': website, 'icon': icon, 'apiModels': apiModels, 'provider': JsonConverters.toJson(provider,'AiServiceProvider',context!) }; getTypeName() => "ApiTypeBase"; TypeContext? context = _ctx; } class GenerationApiType extends ApiTypeBase implements IConvertible { GenerationApiType(); GenerationApiType.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "GenerationApiType"; TypeContext? context = _ctx; } class QueryGenerationApiTypes extends QueryDb implements IReturn>, IConvertible, IGet { QueryGenerationApiTypes(); QueryGenerationApiTypes.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryGenerationApiTypes"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'AiServiceProvider': TypeInfo(TypeOf.Enum, enumValues:AiServiceProvider.values), 'ApiTypeBase': TypeInfo(TypeOf.Class, create:() => ApiTypeBase()), 'GenerationApiType': TypeInfo(TypeOf.Class, create:() => GenerationApiType()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryGenerationApiTypes': TypeInfo(TypeOf.Class, create:() => QueryGenerationApiTypes()), 'List': TypeInfo(TypeOf.Class, create:() => []), });