/* Options: Date: 2025-12-06 07:05:15 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: GetAllPaymentOptionRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; enum PaymentOption { Visa, MasterCard, AmericanExpress, Diners, Vipps, } class PaymentOptionDto implements IConvertible { String? label; PaymentOption? slug; PaymentOptionDto({this.label,this.slug}); PaymentOptionDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; slug = JsonConverters.fromJson(json['slug'],'PaymentOption',context!); return this; } Map toJson() => { 'label': label, 'slug': JsonConverters.toJson(slug,'PaymentOption',context!) }; getTypeName() => "PaymentOptionDto"; TypeContext? context = _ctx; } class GetAllPaymentOptionResponse implements IConvertible { List? paymentOptions = []; GetAllPaymentOptionResponse({this.paymentOptions}); GetAllPaymentOptionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { paymentOptions = JsonConverters.fromJson(json['paymentOptions'],'List',context!); return this; } Map toJson() => { 'paymentOptions': JsonConverters.toJson(paymentOptions,'List',context!) }; getTypeName() => "GetAllPaymentOptionResponse"; TypeContext? context = _ctx; } // @Route("/payment_option/get_all", "GET") class GetAllPaymentOptionRequest implements IReturn, IGet, IConvertible { GetAllPaymentOptionRequest(); GetAllPaymentOptionRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetAllPaymentOptionResponse(); getResponseTypeName() => "GetAllPaymentOptionResponse"; getTypeName() => "GetAllPaymentOptionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'PaymentOption': TypeInfo(TypeOf.Enum, enumValues:PaymentOption.values), 'PaymentOptionDto': TypeInfo(TypeOf.Class, create:() => PaymentOptionDto()), 'GetAllPaymentOptionResponse': TypeInfo(TypeOf.Class, create:() => GetAllPaymentOptionResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAllPaymentOptionRequest': TypeInfo(TypeOf.Class, create:() => GetAllPaymentOptionRequest()), });