/* Options: Date: 2024-12-22 13:17:37 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: DeletePost.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DeletePostResponse implements IConvertible { int? id; ResponseStatus? responseStatus; DeletePostResponse({this.id,this.responseStatus}); DeletePostResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "DeletePostResponse"; TypeContext? context = _ctx; } // @Route("/posts/{Id}", "DELETE") class DeletePost implements IReturn, IDelete, IConvertible { int? id; DeletePost({this.id}); DeletePost.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => DeletePostResponse(); getResponseTypeName() => "DeletePostResponse"; getTypeName() => "DeletePost"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'DeletePostResponse': TypeInfo(TypeOf.Class, create:() => DeletePostResponse()), 'DeletePost': TypeInfo(TypeOf.Class, create:() => DeletePost()), });