/* Options: Date: 2025-09-22 22:30:31 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: ValidateCoupon.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ValidateCouponResonse implements IConvertible { bool? isValid; String? message; HttpStatusCode? status; ValidateCouponResonse({this.isValid,this.message,this.status}); ValidateCouponResonse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isValid = json['isValid']; message = json['message']; status = JsonConverters.fromJson(json['status'],'HttpStatusCode',context!); return this; } Map toJson() => { 'isValid': isValid, 'message': message, 'status': JsonConverters.toJson(status,'HttpStatusCode',context!) }; getTypeName() => "ValidateCouponResonse"; TypeContext? context = _ctx; } // @Route("/coupons/validate/{code}", "GET") class ValidateCoupon implements IReturn, IConvertible { String? code; ValidateCoupon({this.code}); ValidateCoupon.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; return this; } Map toJson() => { 'code': code }; createResponse() => ValidateCouponResonse(); getResponseTypeName() => "ValidateCouponResonse"; getTypeName() => "ValidateCoupon"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: { 'ValidateCouponResonse': TypeInfo(TypeOf.Class, create:() => ValidateCouponResonse()), 'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()), 'ValidateCoupon': TypeInfo(TypeOf.Class, create:() => ValidateCoupon()), });