/* Options: Date: 2024-05-02 10:39:07 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: PinPostComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PinPostCommentResponse implements IConvertible { ResponseStatus? responseStatus; PinPostCommentResponse({this.responseStatus}); PinPostCommentResponse.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() => "PinPostCommentResponse"; TypeContext? context = _ctx; } // @Route("/posts/{PostId}/comments/{Id}/pin", "PUT") class PinPostComment implements IReturn, IPut, IConvertible { int? id; int? postId; bool? pin; PinPostComment({this.id,this.postId,this.pin}); PinPostComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; postId = json['postId']; pin = json['pin']; return this; } Map toJson() => { 'id': id, 'postId': postId, 'pin': pin }; createResponse() => PinPostCommentResponse(); getResponseTypeName() => "PinPostCommentResponse"; getTypeName() => "PinPostComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'PinPostCommentResponse': TypeInfo(TypeOf.Class, create:() => PinPostCommentResponse()), 'PinPostComment': TypeInfo(TypeOf.Class, create:() => PinPostComment()), });