/* Options: Date: 2025-12-06 09:04:05 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: CropsCylindersAdd.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CropsCylindersAddResponse implements IConvertible { // @DataMember(Order=2) int? tenantsId; // @DataMember(Order=3) int? zonesId; // @DataMember(Order=4) int? cropsId; // @DataMember(Order=5) String? thickness; // @DataMember(Order=6) String? colour; // @DataMember(Order=7) String? imageUrl; // @DataMember(Order=8) ResponseStatus? responseStatus; CropsCylindersAddResponse({this.tenantsId,this.zonesId,this.cropsId,this.thickness,this.colour,this.imageUrl,this.responseStatus}); CropsCylindersAddResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { tenantsId = json['tenantsId']; zonesId = json['zonesId']; cropsId = json['cropsId']; thickness = json['thickness']; colour = json['colour']; imageUrl = json['imageUrl']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'tenantsId': tenantsId, 'zonesId': zonesId, 'cropsId': cropsId, 'thickness': thickness, 'colour': colour, 'imageUrl': imageUrl, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "CropsCylindersAddResponse"; TypeContext? context = _ctx; } // @Route("/crops_cylinders", "POST") // @DataContract class CropsCylindersAdd implements IReturn, IConvertible, IPost { // @DataMember(Order=2) // @Validate(Validator="NotNull") int? tenantsId; // @DataMember(Order=3) // @Validate(Validator="NotNull") int? zonesId; // @DataMember(Order=4) // @Validate(Validator="NotNull") int? cropsId; // @DataMember(Order=5) // @Validate(Validator="NotNull") String? thickness; // @DataMember(Order=6) // @Validate(Validator="NotNull") String? colour; // @DataMember(Order=7) // @Validate(Validator="NotNull") String? imageUrl; CropsCylindersAdd({this.tenantsId,this.zonesId,this.cropsId,this.thickness,this.colour,this.imageUrl}); CropsCylindersAdd.fromJson(Map json) { fromMap(json); } fromMap(Map json) { tenantsId = json['tenantsId']; zonesId = json['zonesId']; cropsId = json['cropsId']; thickness = json['thickness']; colour = json['colour']; imageUrl = json['imageUrl']; return this; } Map toJson() => { 'tenantsId': tenantsId, 'zonesId': zonesId, 'cropsId': cropsId, 'thickness': thickness, 'colour': colour, 'imageUrl': imageUrl }; createResponse() => CropsCylindersAddResponse(); getResponseTypeName() => "CropsCylindersAddResponse"; getTypeName() => "CropsCylindersAdd"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'CropsCylindersAddResponse': TypeInfo(TypeOf.Class, create:() => CropsCylindersAddResponse()), 'CropsCylindersAdd': TypeInfo(TypeOf.Class, create:() => CropsCylindersAdd()), });