/* Options: Date: 2025-01-08 03:10:10 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: DeleteSignup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Signup extends StatBase implements IConvertible { int? id; SignupType? type; String? email; String? name; DateTime? cancelledDate; Signup({this.id,this.type,this.email,this.name,this.cancelledDate}); Signup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; type = JsonConverters.fromJson(json['type'],'SignupType',context!); email = json['email']; name = json['name']; cancelledDate = JsonConverters.fromJson(json['cancelledDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'type': JsonConverters.toJson(type,'SignupType',context!), 'email': email, 'name': name, 'cancelledDate': JsonConverters.toJson(cancelledDate,'DateTime',context!) }); getTypeName() => "Signup"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="HasRole(`Moderator`)") class DeleteSignup implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; DeleteSignup({this.id}); DeleteSignup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "DeleteSignup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'Signup': TypeInfo(TypeOf.Class, create:() => Signup()), 'SignupType': TypeInfo(TypeOf.Class, create:() => SignupType()), 'DeleteSignup': TypeInfo(TypeOf.Class, create:() => DeleteSignup()), });