/* Options: Date: 2024-12-22 12:09:44 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: LockPost.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Route("/posts/{Id}/lock", "PUT") class LockPost implements IReturnVoid, IPut, IConvertible { int? id; bool? lock; String? reason; LockPost({this.id,this.lock,this.reason}); LockPost.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; lock = json['lock']; reason = json['reason']; return this; } Map toJson() => { 'id': id, 'lock': lock, 'reason': reason }; createResponse() {} getTypeName() => "LockPost"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'LockPost': TypeInfo(TypeOf.Class, create:() => LockPost()), });