/* Options: Date: 2025-12-06 09:20:58 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: CropsCompetitorsLookup.* //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("/cropscompetitors", "GET") class CropsCompetitorsLookup implements IReturn>, IConvertible, IGet { int? id; int? tenantsId; int? cropsId; int? competitorCropsId; String? cropsName; String? competitorName; double? penaltyPercentage; Paging? paging; CropsCompetitorsLookup({this.id,this.tenantsId,this.cropsId,this.competitorCropsId,this.cropsName,this.competitorName,this.penaltyPercentage,this.paging}); CropsCompetitorsLookup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; cropsId = json['cropsId']; competitorCropsId = json['competitorCropsId']; cropsName = json['cropsName']; competitorName = json['competitorName']; penaltyPercentage = JsonConverters.toDouble(json['penaltyPercentage']); paging = JsonConverters.fromJson(json['paging'],'Paging',context!); return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'cropsId': cropsId, 'competitorCropsId': competitorCropsId, 'cropsName': cropsName, 'competitorName': competitorName, 'penaltyPercentage': penaltyPercentage, 'paging': JsonConverters.toJson(paging,'Paging',context!) }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "CropsCompetitorsLookup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'Paging': TypeInfo(TypeOf.Class, create:() => Paging()), 'CropsCompetitorsLookup': TypeInfo(TypeOf.Class, create:() => CropsCompetitorsLookup()), });