/* Options: Date: 2025-01-08 03:04:33 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: UpdateModifier.* //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 UpdateModifier implements IReturn, IPatchDb, IConvertible, IPatch { int? id; String? name; String? category; String? description; UpdateModifier({this.id,this.name,this.category,this.description}); UpdateModifier.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; category = json['category']; description = json['description']; return this; } Map toJson() => { 'id': id, 'name': name, 'category': category, 'description': description }; createResponse() => Modifier(); getResponseTypeName() => "Modifier"; getTypeName() => "UpdateModifier"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'Modifier': TypeInfo(TypeOf.Class, create:() => Modifier()), 'UpdateModifier': TypeInfo(TypeOf.Class, create:() => UpdateModifier()), });