/* Options: Date: 2024-04-28 05:33:49 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: UserPostVote.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UserPostVoteResponse implements IConvertible { ResponseStatus? responseStatus; UserPostVoteResponse({this.responseStatus}); UserPostVoteResponse.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() => "UserPostVoteResponse"; TypeContext? context = _ctx; } // @Route("/posts/{Id}/vote", "PUT") class UserPostVote implements IReturn, IPut, IConvertible { int? id; int? weight; UserPostVote({this.id,this.weight}); UserPostVote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; weight = json['weight']; return this; } Map toJson() => { 'id': id, 'weight': weight }; createResponse() => UserPostVoteResponse(); getResponseTypeName() => "UserPostVoteResponse"; getTypeName() => "UserPostVote"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'UserPostVoteResponse': TypeInfo(TypeOf.Class, create:() => UserPostVoteResponse()), 'UserPostVote': TypeInfo(TypeOf.Class, create:() => UserPostVote()), });