/* Options: Date: 2026-03-22 21:57:41 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://fbihtaapi.bettor.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RegisterProduct.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Reference implements IConvertible { String? id; String? value; Reference({this.id,this.value}); Reference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; value = json['value']; return this; } Map toJson() => { 'id': id, 'value': value }; getTypeName() => "Reference"; TypeContext? context = _ctx; } class ProductCategory { static const ProductCategory Sportsbook = const ProductCategory._(0); static const ProductCategory RNG = const ProductCategory._(1); final int _value; const ProductCategory._(this._value); int get value => _value; static List get values => const [Sportsbook,RNG]; } class Reference implements IConvertible { String? id; String? value; Reference({this.id,this.value}); Reference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; value = json['value']; return this; } Map toJson() => { 'id': id, 'value': value }; getTypeName() => "Reference"; TypeContext? context = _ctx; } class ProductCategory { static const ProductCategory Sportsbook = const ProductCategory._(0); static const ProductCategory RNG = const ProductCategory._(1); final int _value; const ProductCategory._(this._value); int get value => _value; static List get values => const [Sportsbook,RNG]; } // @Route("/products/register", "POST") class RegisterProduct implements IReturn, IConvertible, IPost { String? id; String? name; Reference? productProvider; ProductCategory? category; RegisterProduct({this.id,this.name,this.productProvider,this.category}); RegisterProduct.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; productProvider = JsonConverters.fromJson(json['productProvider'],'Reference',context!); category = JsonConverters.fromJson(json['category'],'ProductCategory',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'productProvider': JsonConverters.toJson(productProvider,'Reference',context!), 'category': JsonConverters.toJson(category,'ProductCategory',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "RegisterProduct"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'fbihtaapi.bettor.webhop.biz', types: { 'Reference': TypeInfo(TypeOf.Class, create:() => Reference()), 'ProductCategory': TypeInfo(TypeOf.Enum, enumValues:ProductCategory.values), 'RegisterProduct': TypeInfo(TypeOf.Class, create:() => RegisterProduct()), });