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