/* Options: Date: 2025-01-08 03:08:44 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: CreateApiModel.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AiModel implements IConvertible { int? id; String? name; List? tags = []; String? latest; String? website; String? description; String? icon; AiModel({this.id,this.name,this.tags,this.latest,this.website,this.description,this.icon}); AiModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; tags = JsonConverters.fromJson(json['tags'],'List',context!); latest = json['latest']; website = json['website']; description = json['description']; icon = json['icon']; return this; } Map toJson() => { 'id': id, 'name': name, 'tags': JsonConverters.toJson(tags,'List',context!), 'latest': latest, 'website': website, 'description': description, 'icon': icon }; getTypeName() => "AiModel"; TypeContext? context = _ctx; } class CreateApiModel implements IReturn, ICreateDb, IConvertible, IPost { String? name; String? website; List? tags; String? latest; String? description; String? icon; CreateApiModel({this.name,this.website,this.tags,this.latest,this.description,this.icon}); CreateApiModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; website = json['website']; tags = JsonConverters.fromJson(json['tags'],'List',context!); latest = json['latest']; description = json['description']; icon = json['icon']; return this; } Map toJson() => { 'name': name, 'website': website, 'tags': JsonConverters.toJson(tags,'List',context!), 'latest': latest, 'description': description, 'icon': icon }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "CreateApiModel"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'AiModel': TypeInfo(TypeOf.Class, create:() => AiModel()), 'CreateApiModel': TypeInfo(TypeOf.Class, create:() => CreateApiModel()), });