/* Options: Date: 2024-12-22 13:50:50 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: GetUserPostActivity.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetUserPostActivityResponse implements IConvertible { List? upVotedPostIds; List? downVotedPostIds; List? favoritePostIds; ResponseStatus? responseStatus; GetUserPostActivityResponse({this.upVotedPostIds,this.downVotedPostIds,this.favoritePostIds,this.responseStatus}); GetUserPostActivityResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { upVotedPostIds = JsonConverters.fromJson(json['upVotedPostIds'],'List',context!); downVotedPostIds = JsonConverters.fromJson(json['downVotedPostIds'],'List',context!); favoritePostIds = JsonConverters.fromJson(json['favoritePostIds'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'upVotedPostIds': JsonConverters.toJson(upVotedPostIds,'List',context!), 'downVotedPostIds': JsonConverters.toJson(downVotedPostIds,'List',context!), 'favoritePostIds': JsonConverters.toJson(favoritePostIds,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetUserPostActivityResponse"; TypeContext? context = _ctx; } // @Route("/user/posts/activity") class GetUserPostActivity implements IReturn, IGet, IConvertible { GetUserPostActivity(); GetUserPostActivity.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetUserPostActivityResponse(); getResponseTypeName() => "GetUserPostActivityResponse"; getTypeName() => "GetUserPostActivity"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'GetUserPostActivityResponse': TypeInfo(TypeOf.Class, create:() => GetUserPostActivityResponse()), 'GetUserPostActivity': TypeInfo(TypeOf.Class, create:() => GetUserPostActivity()), });