/* Options: Date: 2025-12-15 19:55:21 Version: 10.04 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; } class UserPostCommentReport implements IReturn, IPut, IConvertible { int id = 0; int postId = 0; 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()), });