/* Options: Date: 2024-12-22 12:25:06 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: GetUserPostCommentVotes.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetUserPostCommentVotesResponse implements IConvertible { int? postId; List? upVotedCommentIds; List? downVotedCommentIds; GetUserPostCommentVotesResponse({this.postId,this.upVotedCommentIds,this.downVotedCommentIds}); GetUserPostCommentVotesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { postId = json['postId']; upVotedCommentIds = JsonConverters.fromJson(json['upVotedCommentIds'],'List',context!); downVotedCommentIds = JsonConverters.fromJson(json['downVotedCommentIds'],'List',context!); return this; } Map toJson() => { 'postId': postId, 'upVotedCommentIds': JsonConverters.toJson(upVotedCommentIds,'List',context!), 'downVotedCommentIds': JsonConverters.toJson(downVotedCommentIds,'List',context!) }; getTypeName() => "GetUserPostCommentVotesResponse"; TypeContext? context = _ctx; } // @Route("/user/comments/votes") class GetUserPostCommentVotes implements IReturn, IGet, IConvertible { int? postId; GetUserPostCommentVotes({this.postId}); GetUserPostCommentVotes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { postId = json['postId']; return this; } Map toJson() => { 'postId': postId }; createResponse() => GetUserPostCommentVotesResponse(); getResponseTypeName() => "GetUserPostCommentVotesResponse"; getTypeName() => "GetUserPostCommentVotes"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'GetUserPostCommentVotesResponse': TypeInfo(TypeOf.Class, create:() => GetUserPostCommentVotesResponse()), 'GetUserPostCommentVotes': TypeInfo(TypeOf.Class, create:() => GetUserPostCommentVotes()), });