/* Options: Date: 2025-09-22 22:29:03 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: UpdateCoupon.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UpdateCouponResponse implements IConvertible { String? message; HttpStatusCode? status; UpdateCouponResponse({this.message,this.status}); UpdateCouponResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { message = json['message']; status = JsonConverters.fromJson(json['status'],'HttpStatusCode',context!); return this; } Map toJson() => { 'message': message, 'status': JsonConverters.toJson(status,'HttpStatusCode',context!) }; getTypeName() => "UpdateCouponResponse"; TypeContext? context = _ctx; } // @Route("/coupons/{id}", "PUT") class UpdateCoupon implements IReturn, IConvertible { int? id; String? name; String? description; DateTime? effectiveDate; String? discountType; Map? productDiscounts; UpdateCoupon({this.id,this.name,this.description,this.effectiveDate,this.discountType,this.productDiscounts}); UpdateCoupon.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; description = json['description']; effectiveDate = JsonConverters.fromJson(json['effectiveDate'],'DateTime',context!); discountType = json['discountType']; productDiscounts = JsonConverters.fromJson(json['productDiscounts'],'Map',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'description': description, 'effectiveDate': JsonConverters.toJson(effectiveDate,'DateTime',context!), 'discountType': discountType, 'productDiscounts': JsonConverters.toJson(productDiscounts,'Map',context!) }; createResponse() => UpdateCouponResponse(); getResponseTypeName() => "UpdateCouponResponse"; getTypeName() => "UpdateCoupon"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: { 'UpdateCouponResponse': TypeInfo(TypeOf.Class, create:() => UpdateCouponResponse()), 'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()), 'UpdateCoupon': TypeInfo(TypeOf.Class, create:() => UpdateCoupon()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), });