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