/* Options: Date: 2025-12-06 08:28:20 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: GetAllNewsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; class NewsDto implements IConvertible { String? subject; String? body; String? author; DateTime? createdAt; NewsDto({this.subject,this.body,this.author,this.createdAt}); NewsDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { subject = json['subject']; body = json['body']; author = json['author']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); return this; } Map toJson() => { 'subject': subject, 'body': body, 'author': author, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!) }; getTypeName() => "NewsDto"; TypeContext? context = _ctx; } class GetAllNewsResponse implements IConvertible { List? news = []; GetAllNewsResponse({this.news}); GetAllNewsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { news = JsonConverters.fromJson(json['news'],'List',context!); return this; } Map toJson() => { 'news': JsonConverters.toJson(news,'List',context!) }; getTypeName() => "GetAllNewsResponse"; TypeContext? context = _ctx; } // @Route("/news/get_all", "GET") class GetAllNewsRequest implements IReturn, IGet, IConvertible { GetAllNewsRequest(); GetAllNewsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetAllNewsResponse(); getResponseTypeName() => "GetAllNewsResponse"; getTypeName() => "GetAllNewsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'NewsDto': TypeInfo(TypeOf.Class, create:() => NewsDto()), 'GetAllNewsResponse': TypeInfo(TypeOf.Class, create:() => GetAllNewsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAllNewsRequest': TypeInfo(TypeOf.Class, create:() => GetAllNewsRequest()), });