/* Options: Date: 2024-12-22 12:40:05 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EmailTest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class EmailTestResponse implements IConvertible { ResponseStatus? responseStatus; EmailTestResponse({this.responseStatus}); EmailTestResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "EmailTestResponse"; TypeContext? context = _ctx; } // @Route("/email/post/{PostId}") // @ValidateRequest(Validator="IsAdmin") class EmailTest implements IReturn, IConvertible, IPost { int? postId; EmailTest({this.postId}); EmailTest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { postId = json['postId']; return this; } Map toJson() => { 'postId': postId }; createResponse() => EmailTestResponse(); getResponseTypeName() => "EmailTestResponse"; getTypeName() => "EmailTest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'EmailTestResponse': TypeInfo(TypeOf.Class, create:() => EmailTestResponse()), 'EmailTest': TypeInfo(TypeOf.Class, create:() => EmailTest()), });