/* Options: Date: 2025-12-06 14:44:08 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: CropsVarietiesListLookup.* //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("/cropsvarietieslist", "GET") class CropsVarietiesListLookup implements IReturn>, IConvertible, IGet { int? id; int? tenantsId; int? zonesId; int? cropsId; String? cropsVarietiesName; String? cropsName; String? name; String? mediaPath; Paging? paging; CropsVarietiesListLookup({this.id,this.tenantsId,this.zonesId,this.cropsId,this.cropsVarietiesName,this.cropsName,this.name,this.mediaPath,this.paging}); CropsVarietiesListLookup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; cropsId = json['cropsId']; cropsVarietiesName = json['cropsVarietiesName']; cropsName = json['cropsName']; name = json['name']; mediaPath = json['mediaPath']; paging = JsonConverters.fromJson(json['paging'],'Paging',context!); return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'cropsId': cropsId, 'cropsVarietiesName': cropsVarietiesName, 'cropsName': cropsName, 'name': name, 'mediaPath': mediaPath, 'paging': JsonConverters.toJson(paging,'Paging',context!) }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "CropsVarietiesListLookup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'Paging': TypeInfo(TypeOf.Class, create:() => Paging()), 'CropsVarietiesListLookup': TypeInfo(TypeOf.Class, create:() => CropsVarietiesListLookup()), });