/* Options: Date: 2025-12-06 07:07:04 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://backoffice-api.brovs.com //GlobalNamespace: BackofficeApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EditNewsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; class EditNewsResponse implements IConvertible { bool? success; EditNewsResponse({this.success}); EditNewsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; return this; } Map toJson() => { 'success': success }; getTypeName() => "EditNewsResponse"; TypeContext? context = _ctx; } // @Route("/news/edit", "PUT") class EditNewsRequest implements IReturn, IPut, IConvertible { int? id; String? subject; String? body; String? author; EditNewsRequest({this.id,this.subject,this.body,this.author}); EditNewsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; subject = json['subject']; body = json['body']; author = json['author']; return this; } Map toJson() => { 'id': id, 'subject': subject, 'body': body, 'author': author }; createResponse() => EditNewsResponse(); getResponseTypeName() => "EditNewsResponse"; getTypeName() => "EditNewsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'EditNewsResponse': TypeInfo(TypeOf.Class, create:() => EditNewsResponse()), 'EditNewsRequest': TypeInfo(TypeOf.Class, create:() => EditNewsRequest()), });