/* Options: Date: 2025-12-06 07:06:56 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: GetAllTakeAwayRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; class BackofficeTakeAwayDto implements IConvertible { int? id; String? label; String? slug; int? position; BackofficeTakeAwayDto({this.id,this.label,this.slug,this.position}); BackofficeTakeAwayDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; label = json['label']; slug = json['slug']; position = json['position']; return this; } Map toJson() => { 'id': id, 'label': label, 'slug': slug, 'position': position }; getTypeName() => "BackofficeTakeAwayDto"; TypeContext? context = _ctx; } class GetAllTakeAwayResponse implements IConvertible { List? takeAways = []; GetAllTakeAwayResponse({this.takeAways}); GetAllTakeAwayResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { takeAways = JsonConverters.fromJson(json['takeAways'],'List',context!); return this; } Map toJson() => { 'takeAways': JsonConverters.toJson(takeAways,'List',context!) }; getTypeName() => "GetAllTakeAwayResponse"; TypeContext? context = _ctx; } // @Route("/take_away/get_all", "GET") class GetAllTakeAwayRequest implements IReturn, IGet, IConvertible { GetAllTakeAwayRequest(); GetAllTakeAwayRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetAllTakeAwayResponse(); getResponseTypeName() => "GetAllTakeAwayResponse"; getTypeName() => "GetAllTakeAwayRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'BackofficeTakeAwayDto': TypeInfo(TypeOf.Class, create:() => BackofficeTakeAwayDto()), 'GetAllTakeAwayResponse': TypeInfo(TypeOf.Class, create:() => GetAllTakeAwayResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAllTakeAwayRequest': TypeInfo(TypeOf.Class, create:() => GetAllTakeAwayRequest()), });