/* Options: Date: 2024-12-22 12:01:41 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: UpdatePostComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UpdatePostCommentResponse implements IConvertible { ResponseStatus? responseStatus; UpdatePostCommentResponse({this.responseStatus}); UpdatePostCommentResponse.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() => "UpdatePostCommentResponse"; TypeContext? context = _ctx; } // @Route("/posts/{PostId}/comments/{Id}", "PUT") class UpdatePostComment implements IReturn, IPut, IConvertible { int? id; int? postId; String? content; UpdatePostComment({this.id,this.postId,this.content}); UpdatePostComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; postId = json['postId']; content = json['content']; return this; } Map toJson() => { 'id': id, 'postId': postId, 'content': content }; createResponse() => UpdatePostCommentResponse(); getResponseTypeName() => "UpdatePostCommentResponse"; getTypeName() => "UpdatePostComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'UpdatePostCommentResponse': TypeInfo(TypeOf.Class, create:() => UpdatePostCommentResponse()), 'UpdatePostComment': TypeInfo(TypeOf.Class, create:() => UpdatePostComment()), });