/* Options: Date: 2025-12-06 07:07:10 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: GetAllPriceMainDishRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; enum PriceMainDish { Value, Medium, High, FineDining, } class BackofficePriceMainDishDto implements IConvertible { String? label; PriceMainDish? slug; BackofficePriceMainDishDto({this.label,this.slug}); BackofficePriceMainDishDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; slug = JsonConverters.fromJson(json['slug'],'PriceMainDish',context!); return this; } Map toJson() => { 'label': label, 'slug': JsonConverters.toJson(slug,'PriceMainDish',context!) }; getTypeName() => "BackofficePriceMainDishDto"; 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; } 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: 'BackofficeApi', types: { 'PriceMainDish': TypeInfo(TypeOf.Enum, enumValues:PriceMainDish.values), 'BackofficePriceMainDishDto': TypeInfo(TypeOf.Class, create:() => BackofficePriceMainDishDto()), 'GetAllPriceMainDishResponse': TypeInfo(TypeOf.Class, create:() => GetAllPriceMainDishResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAllPriceMainDishRequest': TypeInfo(TypeOf.Class, create:() => GetAllPriceMainDishRequest()), });