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