/* Options: Date: 2025-01-08 03:22:05 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: DeleteModifier.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Modifier extends AuditBase implements IConvertible { int? id; String? name; String? category; String? description; int? score; int? rank; Modifier({this.id,this.name,this.category,this.description,this.score,this.rank}); Modifier.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; name = json['name']; category = json['category']; description = json['description']; score = json['score']; rank = json['rank']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'name': name, 'category': category, 'description': description, 'score': score, 'rank': rank }); getTypeName() => "Modifier"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="HasRole(`Moderator`)") class DeleteModifier implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; DeleteModifier({this.id}); DeleteModifier.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "DeleteModifier"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'Modifier': TypeInfo(TypeOf.Class, create:() => Modifier()), 'DeleteModifier': TypeInfo(TypeOf.Class, create:() => DeleteModifier()), });