/* Options: Date: 2025-01-08 03:11:29 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: DeleteApiProvider.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiProvider implements IConvertible { int? id; String? name; String? apiBaseUrl; int? apiTypeId; String? apiKeyVar; String? apiKey; String? apiKeyHeader; String? heartbeatUrl; int? concurrency; int? priority; bool? enabled; DateTime? offlineDate; DateTime? createdDate; List? models = []; ApiType? apiType; // @ignore() List? selectedModels = []; ApiProvider({this.id,this.name,this.apiBaseUrl,this.apiTypeId,this.apiKeyVar,this.apiKey,this.apiKeyHeader,this.heartbeatUrl,this.concurrency,this.priority,this.enabled,this.offlineDate,this.createdDate,this.models,this.apiType,this.selectedModels}); ApiProvider.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; apiBaseUrl = json['apiBaseUrl']; apiTypeId = json['apiTypeId']; apiKeyVar = json['apiKeyVar']; apiKey = json['apiKey']; apiKeyHeader = json['apiKeyHeader']; heartbeatUrl = json['heartbeatUrl']; concurrency = json['concurrency']; priority = json['priority']; enabled = json['enabled']; offlineDate = JsonConverters.fromJson(json['offlineDate'],'DateTime',context!); createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); models = JsonConverters.fromJson(json['models'],'List',context!); apiType = JsonConverters.fromJson(json['apiType'],'ApiType',context!); selectedModels = JsonConverters.fromJson(json['selectedModels'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'apiBaseUrl': apiBaseUrl, 'apiTypeId': apiTypeId, 'apiKeyVar': apiKeyVar, 'apiKey': apiKey, 'apiKeyHeader': apiKeyHeader, 'heartbeatUrl': heartbeatUrl, 'concurrency': concurrency, 'priority': priority, 'enabled': enabled, 'offlineDate': JsonConverters.toJson(offlineDate,'DateTime',context!), 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!), 'models': JsonConverters.toJson(models,'List',context!), 'apiType': JsonConverters.toJson(apiType,'ApiType',context!), 'selectedModels': JsonConverters.toJson(selectedModels,'List',context!) }; getTypeName() => "ApiProvider"; TypeContext? context = _ctx; } class DeleteApiProvider implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; DeleteApiProvider({this.id}); DeleteApiProvider.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "DeleteApiProvider"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'ApiProvider': TypeInfo(TypeOf.Class, create:() => ApiProvider()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ApiProviderModel': TypeInfo(TypeOf.Class, create:() => ApiProviderModel()), 'ApiType': TypeInfo(TypeOf.Class, create:() => ApiType()), 'DeleteApiProvider': TypeInfo(TypeOf.Class, create:() => DeleteApiProvider()), });