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