/* Options: Date: 2024-12-22 13:28:17 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: ActionPostReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum ReportAction { Dismiss, Delete, } // @Route("/posts/{PostId}/report/{Id}", "POST") class ActionPostReport implements IReturnVoid, IPost, IConvertible { int? postId; int? id; ReportAction? reportAction; ActionPostReport({this.postId,this.id,this.reportAction}); ActionPostReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { postId = json['postId']; id = json['id']; reportAction = JsonConverters.fromJson(json['reportAction'],'ReportAction',context!); return this; } Map toJson() => { 'postId': postId, 'id': id, 'reportAction': JsonConverters.toJson(reportAction,'ReportAction',context!) }; createResponse() {} getTypeName() => "ActionPostReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'ReportAction': TypeInfo(TypeOf.Enum, enumValues:ReportAction.values), 'ActionPostReport': TypeInfo(TypeOf.Class, create:() => ActionPostReport()), });