/* Options: Date: 2025-09-22 22:19:49 Version: 6.21 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://accounts.dev.healthmonix.com/api/ //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDiscountedPurchaseOrderItems.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ShoppingCartItemDto implements IConvertible { String? id; String? name; int? quantity; double? price; String? discountDescription; String? discountSource; double? discount; double? total; ShoppingCartItemDto({this.id,this.name,this.quantity,this.price,this.discountDescription,this.discountSource,this.discount,this.total}); ShoppingCartItemDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; quantity = json['quantity']; price = JsonConverters.toDouble(json['price']); discountDescription = json['discountDescription']; discountSource = json['discountSource']; discount = JsonConverters.toDouble(json['discount']); total = JsonConverters.toDouble(json['total']); return this; } Map toJson() => { 'id': id, 'name': name, 'quantity': quantity, 'price': price, 'discountDescription': discountDescription, 'discountSource': discountSource, 'discount': discount, 'total': total }; getTypeName() => "ShoppingCartItemDto"; TypeContext? context = _ctx; } class ShoppingCartDto implements IConvertible { String? couponCode; List? items; double? total; ShoppingCartDto({this.couponCode,this.items,this.total}); ShoppingCartDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { couponCode = json['couponCode']; items = JsonConverters.fromJson(json['items'],'List',context!); total = JsonConverters.toDouble(json['total']); return this; } Map toJson() => { 'couponCode': couponCode, 'items': JsonConverters.toJson(items,'List',context!), 'total': total }; getTypeName() => "ShoppingCartDto"; TypeContext? context = _ctx; } class GetDiscountedPurchaseOrderItemsResponse implements IConvertible { ShoppingCartDto? shoppingCart; String? message; HttpStatusCode? status; ResponseStatus? responseStatus; GetDiscountedPurchaseOrderItemsResponse({this.shoppingCart,this.message,this.status,this.responseStatus}); GetDiscountedPurchaseOrderItemsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { shoppingCart = JsonConverters.fromJson(json['shoppingCart'],'ShoppingCartDto',context!); message = json['message']; status = JsonConverters.fromJson(json['status'],'HttpStatusCode',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'shoppingCart': JsonConverters.toJson(shoppingCart,'ShoppingCartDto',context!), 'message': message, 'status': JsonConverters.toJson(status,'HttpStatusCode',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetDiscountedPurchaseOrderItemsResponse"; TypeContext? context = _ctx; } // @Route("/purchaseorder/discounteditems", "POST") class GetDiscountedPurchaseOrderItems implements IReturn, IConvertible { ShoppingCartDto? shoppingCart; GetDiscountedPurchaseOrderItems({this.shoppingCart}); GetDiscountedPurchaseOrderItems.fromJson(Map json) { fromMap(json); } fromMap(Map json) { shoppingCart = JsonConverters.fromJson(json['shoppingCart'],'ShoppingCartDto',context!); return this; } Map toJson() => { 'shoppingCart': JsonConverters.toJson(shoppingCart,'ShoppingCartDto',context!) }; createResponse() => GetDiscountedPurchaseOrderItemsResponse(); getResponseTypeName() => "GetDiscountedPurchaseOrderItemsResponse"; getTypeName() => "GetDiscountedPurchaseOrderItems"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: { 'ShoppingCartItemDto': TypeInfo(TypeOf.Class, create:() => ShoppingCartItemDto()), 'ShoppingCartDto': TypeInfo(TypeOf.Class, create:() => ShoppingCartDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetDiscountedPurchaseOrderItemsResponse': TypeInfo(TypeOf.Class, create:() => GetDiscountedPurchaseOrderItemsResponse()), 'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()), 'GetDiscountedPurchaseOrderItems': TypeInfo(TypeOf.Class, create:() => GetDiscountedPurchaseOrderItems()), });