/* Options: Date: 2025-12-06 10:44:46 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: ProductsAdd.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ProductsAddResponse implements IConvertible { // @DataMember(Order=2) int? tenantsId; // @DataMember(Order=3) int? zonesId; // @DataMember(Order=4) int? varietiesId; // @DataMember(Order=5) String? description; // @DataMember(Order=7) ResponseStatus? responseStatus; ProductsAddResponse({this.tenantsId,this.zonesId,this.varietiesId,this.description,this.responseStatus}); ProductsAddResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { tenantsId = json['tenantsId']; zonesId = json['zonesId']; varietiesId = json['varietiesId']; description = json['description']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'tenantsId': tenantsId, 'zonesId': zonesId, 'varietiesId': varietiesId, 'description': description, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "ProductsAddResponse"; TypeContext? context = _ctx; } // @Route("/products", "POST") // @DataContract class ProductsAdd 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? varietiesId; // @DataMember(Order=5) // @Validate(Validator="NotNull") String? description; ProductsAdd({this.tenantsId,this.zonesId,this.varietiesId,this.description}); ProductsAdd.fromJson(Map json) { fromMap(json); } fromMap(Map json) { tenantsId = json['tenantsId']; zonesId = json['zonesId']; varietiesId = json['varietiesId']; description = json['description']; return this; } Map toJson() => { 'tenantsId': tenantsId, 'zonesId': zonesId, 'varietiesId': varietiesId, 'description': description }; createResponse() => ProductsAddResponse(); getResponseTypeName() => "ProductsAddResponse"; getTypeName() => "ProductsAdd"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'ProductsAddResponse': TypeInfo(TypeOf.Class, create:() => ProductsAddResponse()), 'ProductsAdd': TypeInfo(TypeOf.Class, create:() => ProductsAdd()), });