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