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