/* Options: Date: 2024-12-22 13:14:11 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: GetUsersKarma.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetUsersKarmaResponse implements IConvertible { Map? results; ResponseStatus? responseStatus; GetUsersKarmaResponse({this.results,this.responseStatus}); GetUsersKarmaResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { results = JsonConverters.fromJson(json['results'],'Map',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'results': JsonConverters.toJson(results,'Map',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetUsersKarmaResponse"; TypeContext? context = _ctx; } // @Route("/users/karma", "GET") class GetUsersKarma implements IReturn, IGet, IConvertible { List? userIds; GetUsersKarma({this.userIds}); GetUsersKarma.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userIds = JsonConverters.fromJson(json['userIds'],'List',context!); return this; } Map toJson() => { 'userIds': JsonConverters.toJson(userIds,'List',context!) }; createResponse() => GetUsersKarmaResponse(); getResponseTypeName() => "GetUsersKarmaResponse"; getTypeName() => "GetUsersKarma"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'GetUsersKarmaResponse': TypeInfo(TypeOf.Class, create:() => GetUsersKarmaResponse()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetUsersKarma': TypeInfo(TypeOf.Class, create:() => GetUsersKarma()), });