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