/* 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: UpdateProduct.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UpdateProductResponse implements IConvertible { String? message; HttpStatusCode? status; ResponseStatus? responseStatus; UpdateProductResponse({this.message,this.status,this.responseStatus}); UpdateProductResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { message = json['message']; status = JsonConverters.fromJson(json['status'],'HttpStatusCode',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'message': message, 'status': JsonConverters.toJson(status,'HttpStatusCode',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "UpdateProductResponse"; TypeContext? context = _ctx; } // @Route("/products/{id}", "PUT") class UpdateProduct implements IReturn, IConvertible { String? id; String? name; String? description; double? price; String? productType; int? year; String? applicationId; String? requiredProductId; String? scope; String? feature; List? childProductIds; Map? volumeDiscounts; UpdateProduct({this.id,this.name,this.description,this.price,this.productType,this.year,this.applicationId,this.requiredProductId,this.scope,this.feature,this.childProductIds,this.volumeDiscounts}); UpdateProduct.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; description = json['description']; price = JsonConverters.toDouble(json['price']); productType = json['productType']; year = json['year']; applicationId = json['applicationId']; requiredProductId = json['requiredProductId']; scope = json['scope']; feature = json['feature']; childProductIds = JsonConverters.fromJson(json['childProductIds'],'List',context!); volumeDiscounts = JsonConverters.fromJson(json['volumeDiscounts'],'Map',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'description': description, 'price': price, 'productType': productType, 'year': year, 'applicationId': applicationId, 'requiredProductId': requiredProductId, 'scope': scope, 'feature': feature, 'childProductIds': JsonConverters.toJson(childProductIds,'List',context!), 'volumeDiscounts': JsonConverters.toJson(volumeDiscounts,'Map',context!) }; createResponse() => UpdateProductResponse(); getResponseTypeName() => "UpdateProductResponse"; getTypeName() => "UpdateProduct"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: { 'UpdateProductResponse': TypeInfo(TypeOf.Class, create:() => UpdateProductResponse()), 'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()), 'UpdateProduct': TypeInfo(TypeOf.Class, create:() => UpdateProduct()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), });