/* Options: Date: 2024-04-29 11:47:00 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: DeletePostComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DeletePostCommentResponse implements IConvertible { int? id; int? postId; ResponseStatus? responseStatus; DeletePostCommentResponse({this.id,this.postId,this.responseStatus}); DeletePostCommentResponse.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() => "DeletePostCommentResponse"; TypeContext? context = _ctx; } // @Route("/posts/{PostId}/comments/{Id}", "DELETE") class DeletePostComment implements IReturn, IDelete, IConvertible { int? id; int? postId; DeletePostComment({this.id,this.postId}); DeletePostComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; postId = json['postId']; return this; } Map toJson() => { 'id': id, 'postId': postId }; createResponse() => DeletePostCommentResponse(); getResponseTypeName() => "DeletePostCommentResponse"; getTypeName() => "DeletePostComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'DeletePostCommentResponse': TypeInfo(TypeOf.Class, create:() => DeletePostCommentResponse()), 'DeletePostComment': TypeInfo(TypeOf.Class, create:() => DeletePostComment()), });