/* Options: Date: 2025-12-06 14:46:39 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: ProductsUnitsEdit.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ProductsUnitsEditResponse implements IConvertible { // @DataMember(Order=1) int? id; // @DataMember(Order=2) int? tenantsId; // @DataMember(Order=3) int? zonesId; // @DataMember(Order=4) int? productsId; // @DataMember(Order=5) String? units; // @DataMember(Order=6) String? description; // @DataMember(Order=7) int? weight; // @DataMember(Order=9) ResponseStatus? responseStatus; ProductsUnitsEditResponse({this.id,this.tenantsId,this.zonesId,this.productsId,this.units,this.description,this.weight,this.responseStatus}); ProductsUnitsEditResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; productsId = json['productsId']; units = json['units']; description = json['description']; weight = json['weight']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'productsId': productsId, 'units': units, 'description': description, 'weight': weight, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "ProductsUnitsEditResponse"; TypeContext? context = _ctx; } // @Route("/products_units/{Id}", "PUT") // @DataContract class ProductsUnitsEdit implements IReturn, IConvertible, IPut { // @DataMember(Order=1) // @Validate(Validator="NotNull") int? id; // @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? units; // @DataMember(Order=6) // @Validate(Validator="NotNull") String? description; // @DataMember(Order=7) // @Validate(Validator="NotNull") int? weight; ProductsUnitsEdit({this.id,this.tenantsId,this.zonesId,this.productsId,this.units,this.description,this.weight}); ProductsUnitsEdit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; productsId = json['productsId']; units = json['units']; description = json['description']; weight = json['weight']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'productsId': productsId, 'units': units, 'description': description, 'weight': weight }; createResponse() => ProductsUnitsEditResponse(); getResponseTypeName() => "ProductsUnitsEditResponse"; getTypeName() => "ProductsUnitsEdit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'ProductsUnitsEditResponse': TypeInfo(TypeOf.Class, create:() => ProductsUnitsEditResponse()), 'ProductsUnitsEdit': TypeInfo(TypeOf.Class, create:() => ProductsUnitsEdit()), });