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