/* Options: Date: 2025-12-06 09:20:21 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: CropsProductsHarvestsLookup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Paging implements IConvertible { int? pageNumber; int? pageSize; Paging({this.pageNumber,this.pageSize}); Paging.fromJson(Map json) { fromMap(json); } fromMap(Map json) { pageNumber = json['pageNumber']; pageSize = json['pageSize']; return this; } Map toJson() => { 'pageNumber': pageNumber, 'pageSize': pageSize }; getTypeName() => "Paging"; TypeContext? context = _ctx; } // @Route("/cropsproductsharvests", "GET") class CropsProductsHarvestsLookup implements IReturn>, IConvertible, IGet { int? id; int? tenantsId; String? cropsName; int? varietiesId; String? varietiesName; String? productsName; String? harvestDescription; int? quarters; int? qtyG; bool? Final; Paging? paging; CropsProductsHarvestsLookup({this.id,this.tenantsId,this.cropsName,this.varietiesId,this.varietiesName,this.productsName,this.harvestDescription,this.quarters,this.qtyG,this.Final,this.paging}); CropsProductsHarvestsLookup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; cropsName = json['cropsName']; varietiesId = json['varietiesId']; varietiesName = json['varietiesName']; productsName = json['productsName']; harvestDescription = json['harvestDescription']; quarters = json['quarters']; qtyG = json['qtyG']; Final = json['final']; paging = JsonConverters.fromJson(json['paging'],'Paging',context!); return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'cropsName': cropsName, 'varietiesId': varietiesId, 'varietiesName': varietiesName, 'productsName': productsName, 'harvestDescription': harvestDescription, 'quarters': quarters, 'qtyG': qtyG, 'final': Final, 'paging': JsonConverters.toJson(paging,'Paging',context!) }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "CropsProductsHarvestsLookup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'Paging': TypeInfo(TypeOf.Class, create:() => Paging()), 'CropsProductsHarvestsLookup': TypeInfo(TypeOf.Class, create:() => CropsProductsHarvestsLookup()), });