/* Options: Date: 2025-12-07 00:30:47 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sfgtec.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CropsVarietiesLookup.* //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("/cropsvarieties", "GET") class CropsVarietiesLookup implements IReturn>, IConvertible, IGet { int? id; int? tenantsId; int? cropsId; String? cropsName; String? latinName; String? name; String? about; int? heightsCm; bool? needStakes; bool? needSupport; bool? needTrellis; Paging? paging; CropsVarietiesLookup({this.id,this.tenantsId,this.cropsId,this.cropsName,this.latinName,this.name,this.about,this.heightsCm,this.needStakes,this.needSupport,this.needTrellis,this.paging}); CropsVarietiesLookup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; cropsId = json['cropsId']; cropsName = json['cropsName']; latinName = json['latinName']; name = json['name']; about = json['about']; heightsCm = json['heightsCm']; needStakes = json['needStakes']; needSupport = json['needSupport']; needTrellis = json['needTrellis']; paging = JsonConverters.fromJson(json['paging'],'Paging',context!); return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'cropsId': cropsId, 'cropsName': cropsName, 'latinName': latinName, 'name': name, 'about': about, 'heightsCm': heightsCm, 'needStakes': needStakes, 'needSupport': needSupport, 'needTrellis': needTrellis, 'paging': JsonConverters.toJson(paging,'Paging',context!) }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "CropsVarietiesLookup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sfgtec.com', types: { 'Paging': TypeInfo(TypeOf.Class, create:() => Paging()), 'CropsVarietiesLookup': TypeInfo(TypeOf.Class, create:() => CropsVarietiesLookup()), });