/* Options: Date: 2024-05-05 09:32:21 Version: 8.13 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ActionPostCommentReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum ReportAction { Dismiss, Delete, } // @Route("/posts/{PostId}/comments/{PostCommentId}/report/{Id}", "POST") class ActionPostCommentReport implements IReturnVoid, IPost, IConvertible { int? id; int? postCommentId; int? postId; ReportAction? reportAction; ActionPostCommentReport({this.id,this.postCommentId,this.postId,this.reportAction}); ActionPostCommentReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; postCommentId = json['postCommentId']; postId = json['postId']; reportAction = JsonConverters.fromJson(json['reportAction'],'ReportAction',context!); return this; } Map toJson() => { 'id': id, 'postCommentId': postCommentId, 'postId': postId, 'reportAction': JsonConverters.toJson(reportAction,'ReportAction',context!) }; createResponse() {} getTypeName() => "ActionPostCommentReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'ReportAction': TypeInfo(TypeOf.Enum, enumValues:ReportAction.values), 'ActionPostCommentReport': TypeInfo(TypeOf.Class, create:() => ActionPostCommentReport()), });