/* Options: Date: 2025-12-06 07:04:19 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: GetAllBarTypeRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; class BarTypeDto implements IConvertible { int? id; String? slug; String? title; BarTypeDto({this.id,this.slug,this.title}); BarTypeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; slug = json['slug']; title = json['title']; return this; } Map toJson() => { 'id': id, 'slug': slug, 'title': title }; getTypeName() => "BarTypeDto"; TypeContext? context = _ctx; } class GetAllBarTypeResponse implements IConvertible { List? barTypes = []; GetAllBarTypeResponse({this.barTypes}); GetAllBarTypeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { barTypes = JsonConverters.fromJson(json['barTypes'],'List',context!); return this; } Map toJson() => { 'barTypes': JsonConverters.toJson(barTypes,'List',context!) }; getTypeName() => "GetAllBarTypeResponse"; TypeContext? context = _ctx; } // @Route("/bar_type/get_all", "GET") class GetAllBarTypeRequest implements IReturn, IGet, IConvertible { GetAllBarTypeRequest(); GetAllBarTypeRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetAllBarTypeResponse(); getResponseTypeName() => "GetAllBarTypeResponse"; getTypeName() => "GetAllBarTypeRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'BarTypeDto': TypeInfo(TypeOf.Class, create:() => BarTypeDto()), 'GetAllBarTypeResponse': TypeInfo(TypeOf.Class, create:() => GetAllBarTypeResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAllBarTypeRequest': TypeInfo(TypeOf.Class, create:() => GetAllBarTypeRequest()), });