/* Options: Date: 2026-09-01 06:16:08 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api-stage.smartfarmertech.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ProductsUnitsAutoQueryEdit.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ProductsUnits implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Tenants)) int? tenantsId; // @DataMember(Order=3) // @required() // @References(typeof(Zones)) int? zonesId; // @DataMember(Order=4) // @required() // @References(typeof(Products)) int? productsId; // @DataMember(Order=5) // @required() String? units; // @DataMember(Order=6) // @required() String? description; // @DataMember(Order=7) // @required() int? weight; ProductsUnits({this.id,this.tenantsId,this.zonesId,this.productsId,this.units,this.description,this.weight}); ProductsUnits.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 }; getTypeName() => "ProductsUnits"; TypeContext? context = _ctx; } class Tenants implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Zones)) int? mainZonesId; // @DataMember(Order=3) bool? isPublic; Tenants({this.id,this.mainZonesId,this.isPublic}); Tenants.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; mainZonesId = json['mainZonesId']; isPublic = json['isPublic']; return this; } Map toJson() => { 'id': id, 'mainZonesId': mainZonesId, 'isPublic': isPublic }; getTypeName() => "Tenants"; TypeContext? context = _ctx; } class Varieties implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Tenants)) int? tenantsId; // @DataMember(Order=3) // @required() // @References(typeof(Zones)) int? zonesId; // @DataMember(Order=4) // @required() // @References(typeof(Crops)) int? cropsId; // @DataMember(Order=5) // @required() String? name; // @DataMember(Order=6) String? about; // @DataMember(Order=7) int? heightsCm; // @DataMember(Order=8) // @required() bool? needSupport; // @DataMember(Order=9) // @required() bool? needStakes; // @DataMember(Order=10) // @required() bool? needTrellis; Varieties({this.id,this.tenantsId,this.zonesId,this.cropsId,this.name,this.about,this.heightsCm,this.needSupport,this.needStakes,this.needTrellis}); Varieties.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; cropsId = json['cropsId']; name = json['name']; about = json['about']; heightsCm = json['heightsCm']; needSupport = json['needSupport']; needStakes = json['needStakes']; needTrellis = json['needTrellis']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'cropsId': cropsId, 'name': name, 'about': about, 'heightsCm': heightsCm, 'needSupport': needSupport, 'needStakes': needStakes, 'needTrellis': needTrellis }; getTypeName() => "Varieties"; TypeContext? context = _ctx; } class Zones implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Tenants)) int? tenantsId; // @DataMember(Order=3) // @required() String? name; // @DataMember(Order=4) // @required() bool? isMain; // @DataMember(Order=5) // @required() bool? isDefault; Zones({this.id,this.tenantsId,this.name,this.isMain,this.isDefault}); Zones.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; name = json['name']; isMain = json['isMain']; isDefault = json['isDefault']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'name': name, 'isMain': isMain, 'isDefault': isDefault }; getTypeName() => "Zones"; TypeContext? context = _ctx; } class Crops implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Tenants)) int? tenantsId; // @DataMember(Order=3) // @required() // @References(typeof(Zones)) int? zonesId; // @DataMember(Order=4) // @required() String? name; // @DataMember(Order=5) // @required() String? latinName; // @DataMember(Order=6) // @required() String? soldDescription; Crops({this.id,this.tenantsId,this.zonesId,this.name,this.latinName,this.soldDescription}); Crops.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; name = json['name']; latinName = json['latinName']; soldDescription = json['soldDescription']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'name': name, 'latinName': latinName, 'soldDescription': soldDescription }; getTypeName() => "Crops"; TypeContext? context = _ctx; } class Products implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Tenants)) int? tenantsId; // @DataMember(Order=3) // @required() // @References(typeof(Zones)) int? zonesId; // @DataMember(Order=4) // @required() // @References(typeof(Varieties)) int? varietiesId; // @DataMember(Order=5) // @required() String? description; Products({this.id,this.tenantsId,this.zonesId,this.varietiesId,this.description}); Products.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; varietiesId = json['varietiesId']; description = json['description']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'varietiesId': varietiesId, 'description': description }; getTypeName() => "Products"; TypeContext? context = _ctx; } class ProductsUnitsAutoQueryEdit extends ProductsUnits implements IReturn, IUpdateDb, IConvertible, IPut { ProductsUnitsAutoQueryEdit(); ProductsUnitsAutoQueryEdit.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => ProductsUnits(); getResponseTypeName() => "ProductsUnits"; getTypeName() => "ProductsUnitsAutoQueryEdit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api_stage.smartfarmertech.com', types: { 'ProductsUnits': TypeInfo(TypeOf.Class, create:() => ProductsUnits()), 'Tenants': TypeInfo(TypeOf.Class, create:() => Tenants()), 'Varieties': TypeInfo(TypeOf.Class, create:() => Varieties()), 'Zones': TypeInfo(TypeOf.Class, create:() => Zones()), 'Crops': TypeInfo(TypeOf.Class, create:() => Crops()), 'Products': TypeInfo(TypeOf.Class, create:() => Products()), 'ProductsUnitsAutoQueryEdit': TypeInfo(TypeOf.Class, create:() => ProductsUnitsAutoQueryEdit()), });