/* Options: Date: 2025-12-06 14:46:37 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: CropsCylindersEdit.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CropsCylindersEditResponse implements IConvertible { // @DataMember(Order=1) int? id; // @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; CropsCylindersEditResponse({this.id,this.tenantsId,this.zonesId,this.cropsId,this.thickness,this.colour,this.imageUrl,this.responseStatus}); CropsCylindersEditResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; 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() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'cropsId': cropsId, 'thickness': thickness, 'colour': colour, 'imageUrl': imageUrl, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "CropsCylindersEditResponse"; TypeContext? context = _ctx; } // @Route("/crops_cylinders/{Id}", "PUT") // @DataContract class CropsCylindersEdit implements IReturn, IConvertible, IPut { // @DataMember(Order=1) // @Validate(Validator="NotNull") int? id; // @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; CropsCylindersEdit({this.id,this.tenantsId,this.zonesId,this.cropsId,this.thickness,this.colour,this.imageUrl}); CropsCylindersEdit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; cropsId = json['cropsId']; thickness = json['thickness']; colour = json['colour']; imageUrl = json['imageUrl']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'cropsId': cropsId, 'thickness': thickness, 'colour': colour, 'imageUrl': imageUrl }; createResponse() => CropsCylindersEditResponse(); getResponseTypeName() => "CropsCylindersEditResponse"; getTypeName() => "CropsCylindersEdit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'CropsCylindersEditResponse': TypeInfo(TypeOf.Class, create:() => CropsCylindersEditResponse()), 'CropsCylindersEdit': TypeInfo(TypeOf.Class, create:() => CropsCylindersEdit()), });