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