/* Options: Date: 2025-01-08 03:03:38 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: CreateModifier.* //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 CreateModifier implements IReturn, ICreateDb, IConvertible, IPost { // @Validate(Validator="NotEmpty") // @required() String? name; // @Validate(Validator="NotEmpty") // @required() String? category; String? description; CreateModifier({this.name,this.category,this.description}); CreateModifier.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; category = json['category']; description = json['description']; return this; } Map toJson() => { 'name': name, 'category': category, 'description': description }; createResponse() => Modifier(); getResponseTypeName() => "Modifier"; getTypeName() => "CreateModifier"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'Modifier': TypeInfo(TypeOf.Class, create:() => Modifier()), 'CreateModifier': TypeInfo(TypeOf.Class, create:() => CreateModifier()), });