/* Options: Date: 2024-04-29 09:36:03 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: CreatePostComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CreatePostCommentResponse implements IConvertible { int? id; int? postId; ResponseStatus? responseStatus; CreatePostCommentResponse({this.id,this.postId,this.responseStatus}); CreatePostCommentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; postId = json['postId']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'postId': postId, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "CreatePostCommentResponse"; TypeContext? context = _ctx; } // @Route("/posts/{PostId}/comments", "POST") class CreatePostComment implements IReturn, IPost, IConvertible { int? postId; int? replyId; String? content; CreatePostComment({this.postId,this.replyId,this.content}); CreatePostComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { postId = json['postId']; replyId = json['replyId']; content = json['content']; return this; } Map toJson() => { 'postId': postId, 'replyId': replyId, 'content': content }; createResponse() => CreatePostCommentResponse(); getResponseTypeName() => "CreatePostCommentResponse"; getTypeName() => "CreatePostComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'CreatePostCommentResponse': TypeInfo(TypeOf.Class, create:() => CreatePostCommentResponse()), 'CreatePostComment': TypeInfo(TypeOf.Class, create:() => CreatePostComment()), });