/* Options: Date: 2025-01-08 03:13: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: DeleteCreativeArtist.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @ValidateRequest(Validator="HasRole(`Moderator`)") class CreativeArtist implements IConvertible { int? id; // @References(typeof(Creative)) int? creativeId; // @References(typeof(Artist)) int? artistId; Artist? artist; CreativeArtist({this.id,this.creativeId,this.artistId,this.artist}); CreativeArtist.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; creativeId = json['creativeId']; artistId = json['artistId']; artist = JsonConverters.fromJson(json['artist'],'Artist',context!); return this; } Map toJson() => { 'id': id, 'creativeId': creativeId, 'artistId': artistId, 'artist': JsonConverters.toJson(artist,'Artist',context!) }; getTypeName() => "CreativeArtist"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="HasRole(`Moderator`)") class DeleteCreativeArtist implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; List? ids; DeleteCreativeArtist({this.id,this.ids}); DeleteCreativeArtist.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ids = JsonConverters.fromJson(json['ids'],'List',context!); return this; } Map toJson() => { 'id': id, 'ids': JsonConverters.toJson(ids,'List',context!) }; createResponse() {} getTypeName() => "DeleteCreativeArtist"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'CreativeArtist': TypeInfo(TypeOf.Class, create:() => CreativeArtist()), 'Artist': TypeInfo(TypeOf.Class, create:() => Artist()), 'DeleteCreativeArtist': TypeInfo(TypeOf.Class, create:() => DeleteCreativeArtist()), });