/* Options: Date: 2025-12-06 07:07:14 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetAllCuisineRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; class CuisineDto implements IConvertible { int? id; String? label; String? slug; CuisineDto({this.id,this.label,this.slug}); CuisineDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; label = json['label']; slug = json['slug']; return this; } Map toJson() => { 'id': id, 'label': label, 'slug': slug }; getTypeName() => "CuisineDto"; TypeContext? context = _ctx; } class GetAllCuisineResponse implements IConvertible { List? cuisines = []; GetAllCuisineResponse({this.cuisines}); GetAllCuisineResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { cuisines = JsonConverters.fromJson(json['cuisines'],'List',context!); return this; } Map toJson() => { 'cuisines': JsonConverters.toJson(cuisines,'List',context!) }; getTypeName() => "GetAllCuisineResponse"; TypeContext? context = _ctx; } // @Route("/cuisine/get_all", "GET") class GetAllCuisineRequest implements IReturn, IGet, IConvertible { GetAllCuisineRequest(); GetAllCuisineRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetAllCuisineResponse(); getResponseTypeName() => "GetAllCuisineResponse"; getTypeName() => "GetAllCuisineRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'CuisineDto': TypeInfo(TypeOf.Class, create:() => CuisineDto()), 'GetAllCuisineResponse': TypeInfo(TypeOf.Class, create:() => GetAllCuisineResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAllCuisineRequest': TypeInfo(TypeOf.Class, create:() => GetAllCuisineRequest()), });