/* Options: Date: 2025-12-06 07:50:14 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: MallAddOtherServiceRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; abstract class IHasMallId { int? mallId; } class MallOtherServiceDto implements IConvertible { int? id; String? serviceName; String? floor; MallOtherServiceDto({this.id,this.serviceName,this.floor}); MallOtherServiceDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; serviceName = json['serviceName']; floor = json['floor']; return this; } Map toJson() => { 'id': id, 'serviceName': serviceName, 'floor': floor }; getTypeName() => "MallOtherServiceDto"; TypeContext? context = _ctx; } class MallAddOtherServiceResponse implements IConvertible { MallOtherServiceDto? added; MallAddOtherServiceResponse({this.added}); MallAddOtherServiceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { added = JsonConverters.fromJson(json['added'],'MallOtherServiceDto',context!); return this; } Map toJson() => { 'added': JsonConverters.toJson(added,'MallOtherServiceDto',context!) }; getTypeName() => "MallAddOtherServiceResponse"; TypeContext? context = _ctx; } // @Route("/mall/add_other_service", "POST") class MallAddOtherServiceRequest implements IReturn, IPost, IHasMallId, IConvertible { int? mallId; String? floor; String? serviceName; MallAddOtherServiceRequest({this.mallId,this.floor,this.serviceName}); MallAddOtherServiceRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { mallId = json['mallId']; floor = json['floor']; serviceName = json['serviceName']; return this; } Map toJson() => { 'mallId': mallId, 'floor': floor, 'serviceName': serviceName }; createResponse() => MallAddOtherServiceResponse(); getResponseTypeName() => "MallAddOtherServiceResponse"; getTypeName() => "MallAddOtherServiceRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasMallId': TypeInfo(TypeOf.Interface), 'MallOtherServiceDto': TypeInfo(TypeOf.Class, create:() => MallOtherServiceDto()), 'MallAddOtherServiceResponse': TypeInfo(TypeOf.Class, create:() => MallAddOtherServiceResponse()), 'MallAddOtherServiceRequest': TypeInfo(TypeOf.Class, create:() => MallAddOtherServiceRequest()), });