/* Options: Date: 2025-12-16 12:50:58 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: CreatePostComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CreatePostCommentResponse implements IConvertible { int id = 0; int postId = 0; 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; } class CreatePostComment implements IReturn, IPost, IConvertible { int postId = 0; 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()), });