/* Options: Date: 2024-04-30 22:05:33 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: UserPostCommentReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum FlagType { Violation, Spam, Abusive, Confidential, OffTopic, Other, } class UserPostCommentReportResponse implements IConvertible { ResponseStatus? responseStatus; UserPostCommentReportResponse({this.responseStatus}); UserPostCommentReportResponse.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() => "UserPostCommentReportResponse"; TypeContext? context = _ctx; } // @Route("/posts/{PostId}/comments/{Id}/report", "PUT") class UserPostCommentReport implements IReturn, IPut, IConvertible { int? id; int? postId; FlagType? flagType; String? reportNotes; UserPostCommentReport({this.id,this.postId,this.flagType,this.reportNotes}); UserPostCommentReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; postId = json['postId']; flagType = JsonConverters.fromJson(json['flagType'],'FlagType',context!); reportNotes = json['reportNotes']; return this; } Map toJson() => { 'id': id, 'postId': postId, 'flagType': JsonConverters.toJson(flagType,'FlagType',context!), 'reportNotes': reportNotes }; createResponse() => UserPostCommentReportResponse(); getResponseTypeName() => "UserPostCommentReportResponse"; getTypeName() => "UserPostCommentReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'FlagType': TypeInfo(TypeOf.Enum, enumValues:FlagType.values), 'UserPostCommentReportResponse': TypeInfo(TypeOf.Class, create:() => UserPostCommentReportResponse()), 'UserPostCommentReport': TypeInfo(TypeOf.Class, create:() => UserPostCommentReport()), });