/* Options: Date: 2025-12-06 07:51:02 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: GetAllPriceMainDishRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; enum PriceMainDish { Value, Medium, High, FineDining, } class PriceMainDishDto implements IConvertible { String? title; PriceMainDish? slug; PriceMainDishDto({this.title,this.slug}); PriceMainDishDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { title = json['title']; slug = JsonConverters.fromJson(json['slug'],'PriceMainDish',context!); return this; } Map toJson() => { 'title': title, 'slug': JsonConverters.toJson(slug,'PriceMainDish',context!) }; getTypeName() => "PriceMainDishDto"; TypeContext? context = _ctx; } class GetAllPriceMainDishResponse implements IConvertible { List? priceMainDishes = []; GetAllPriceMainDishResponse({this.priceMainDishes}); GetAllPriceMainDishResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { priceMainDishes = JsonConverters.fromJson(json['priceMainDishes'],'List',context!); return this; } Map toJson() => { 'priceMainDishes': JsonConverters.toJson(priceMainDishes,'List',context!) }; getTypeName() => "GetAllPriceMainDishResponse"; TypeContext? context = _ctx; } // @Route("/price_maindish/get_all", "GET") class GetAllPriceMainDishRequest implements IReturn, IGet, IConvertible { GetAllPriceMainDishRequest(); GetAllPriceMainDishRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetAllPriceMainDishResponse(); getResponseTypeName() => "GetAllPriceMainDishResponse"; getTypeName() => "GetAllPriceMainDishRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'PriceMainDish': TypeInfo(TypeOf.Enum, enumValues:PriceMainDish.values), 'PriceMainDishDto': TypeInfo(TypeOf.Class, create:() => PriceMainDishDto()), 'GetAllPriceMainDishResponse': TypeInfo(TypeOf.Class, create:() => GetAllPriceMainDishResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAllPriceMainDishRequest': TypeInfo(TypeOf.Class, create:() => GetAllPriceMainDishRequest()), });