/* Options: Date: 2025-12-06 14:46:16 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://sfgboxapi.dev.scadsoftware.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ProductsRecipesAdd.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ProductsRecipesAddResponse implements IConvertible { // @DataMember(Order=2) int? tenantsId; // @DataMember(Order=3) int? zonesId; // @DataMember(Order=4) int? productsId; // @DataMember(Order=5) String? recipeUrl; // @DataMember(Order=7) ResponseStatus? responseStatus; ProductsRecipesAddResponse({this.tenantsId,this.zonesId,this.productsId,this.recipeUrl,this.responseStatus}); ProductsRecipesAddResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { tenantsId = json['tenantsId']; zonesId = json['zonesId']; productsId = json['productsId']; recipeUrl = json['recipeUrl']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'tenantsId': tenantsId, 'zonesId': zonesId, 'productsId': productsId, 'recipeUrl': recipeUrl, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "ProductsRecipesAddResponse"; TypeContext? context = _ctx; } // @Route("/products_recipes", "POST") // @DataContract class ProductsRecipesAdd implements IReturn, IConvertible, IPost { // @DataMember(Order=2) // @Validate(Validator="NotNull") int? tenantsId; // @DataMember(Order=3) // @Validate(Validator="NotNull") int? zonesId; // @DataMember(Order=4) // @Validate(Validator="NotNull") int? productsId; // @DataMember(Order=5) // @Validate(Validator="NotNull") String? recipeUrl; ProductsRecipesAdd({this.tenantsId,this.zonesId,this.productsId,this.recipeUrl}); ProductsRecipesAdd.fromJson(Map json) { fromMap(json); } fromMap(Map json) { tenantsId = json['tenantsId']; zonesId = json['zonesId']; productsId = json['productsId']; recipeUrl = json['recipeUrl']; return this; } Map toJson() => { 'tenantsId': tenantsId, 'zonesId': zonesId, 'productsId': productsId, 'recipeUrl': recipeUrl }; createResponse() => ProductsRecipesAddResponse(); getResponseTypeName() => "ProductsRecipesAddResponse"; getTypeName() => "ProductsRecipesAdd"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'ProductsRecipesAddResponse': TypeInfo(TypeOf.Class, create:() => ProductsRecipesAddResponse()), 'ProductsRecipesAdd': TypeInfo(TypeOf.Class, create:() => ProductsRecipesAdd()), });