/* Options: Date: 2025-01-08 03:19:34 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: DeleteCreative.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Creative extends AuditBase implements IConvertible { int? id; String? userPrompt; String? prompt; int? images; int? width; int? height; int? steps; int? curatedArtifactId; int? primaryArtifactId; List? artistNames = []; List? modifierNames = []; List? artists = []; List? modifiers = []; List? artifacts = []; String? error; int? ownerId; String? ownerRef; String? key; bool? curated; int? rating; bool? private; int? score; int? rank; String? refId; String? requestId; String? engineId; Creative({this.id,this.userPrompt,this.prompt,this.images,this.width,this.height,this.steps,this.curatedArtifactId,this.primaryArtifactId,this.artistNames,this.modifierNames,this.artists,this.modifiers,this.artifacts,this.error,this.ownerId,this.ownerRef,this.key,this.curated,this.rating,this.private,this.score,this.rank,this.refId,this.requestId,this.engineId}); Creative.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; userPrompt = json['userPrompt']; prompt = json['prompt']; images = json['images']; width = json['width']; height = json['height']; steps = json['steps']; curatedArtifactId = json['curatedArtifactId']; primaryArtifactId = json['primaryArtifactId']; artistNames = JsonConverters.fromJson(json['artistNames'],'List',context!); modifierNames = JsonConverters.fromJson(json['modifierNames'],'List',context!); artists = JsonConverters.fromJson(json['artists'],'List',context!); modifiers = JsonConverters.fromJson(json['modifiers'],'List',context!); artifacts = JsonConverters.fromJson(json['artifacts'],'List',context!); error = json['error']; ownerId = json['ownerId']; ownerRef = json['ownerRef']; key = json['key']; curated = json['curated']; rating = json['rating']; private = json['private']; score = json['score']; rank = json['rank']; refId = json['refId']; requestId = json['requestId']; engineId = json['engineId']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'userPrompt': userPrompt, 'prompt': prompt, 'images': images, 'width': width, 'height': height, 'steps': steps, 'curatedArtifactId': curatedArtifactId, 'primaryArtifactId': primaryArtifactId, 'artistNames': JsonConverters.toJson(artistNames,'List',context!), 'modifierNames': JsonConverters.toJson(modifierNames,'List',context!), 'artists': JsonConverters.toJson(artists,'List',context!), 'modifiers': JsonConverters.toJson(modifiers,'List',context!), 'artifacts': JsonConverters.toJson(artifacts,'List',context!), 'error': error, 'ownerId': ownerId, 'ownerRef': ownerRef, 'key': key, 'curated': curated, 'rating': rating, 'private': private, 'score': score, 'rank': rank, 'refId': refId, 'requestId': requestId, 'engineId': engineId }); getTypeName() => "Creative"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class DeleteCreative implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; DeleteCreative({this.id}); DeleteCreative.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "DeleteCreative"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'Creative': TypeInfo(TypeOf.Class, create:() => Creative()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CreativeArtist': TypeInfo(TypeOf.Class, create:() => CreativeArtist()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CreativeModifier': TypeInfo(TypeOf.Class, create:() => CreativeModifier()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Artifact': TypeInfo(TypeOf.Class, create:() => Artifact()), 'DeleteCreative': TypeInfo(TypeOf.Class, create:() => DeleteCreative()), });