/* Options: Date: 2025-12-06 07:06:23 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: PlaceAddMealTypeRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; abstract class IHasPlaceId { int? placeId; } class MealTypeDto implements IConvertible { int? id; String? label; String? slug; int? position; MealTypeDto({this.id,this.label,this.slug,this.position}); MealTypeDto.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() => "MealTypeDto"; TypeContext? context = _ctx; } class PlaceAddMealTypeResponse implements IConvertible { List? mealTypes = []; PlaceAddMealTypeResponse({this.mealTypes}); PlaceAddMealTypeResponse.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() => "PlaceAddMealTypeResponse"; TypeContext? context = _ctx; } // @Route("/place/add_meal_type", "POST") class PlaceAddMealTypeRequest implements IReturn, IPost, IHasPlaceId, IConvertible { int? placeId; String? mealTypeSlug; PlaceAddMealTypeRequest({this.placeId,this.mealTypeSlug}); PlaceAddMealTypeRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { placeId = json['placeId']; mealTypeSlug = json['mealTypeSlug']; return this; } Map toJson() => { 'placeId': placeId, 'mealTypeSlug': mealTypeSlug }; createResponse() => PlaceAddMealTypeResponse(); getResponseTypeName() => "PlaceAddMealTypeResponse"; getTypeName() => "PlaceAddMealTypeRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasPlaceId': TypeInfo(TypeOf.Interface), 'MealTypeDto': TypeInfo(TypeOf.Class, create:() => MealTypeDto()), 'PlaceAddMealTypeResponse': TypeInfo(TypeOf.Class, create:() => PlaceAddMealTypeResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PlaceAddMealTypeRequest': TypeInfo(TypeOf.Class, create:() => PlaceAddMealTypeRequest()), });