/* Options: Date: 2025-12-06 14:44:52 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: CompanionsEdit.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CompanionsEditResponse 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) int? companionCropsId; // @DataMember(Order=7) ResponseStatus? responseStatus; CompanionsEditResponse({this.id,this.tenantsId,this.zonesId,this.cropsId,this.companionCropsId,this.responseStatus}); CompanionsEditResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; cropsId = json['cropsId']; companionCropsId = json['companionCropsId']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'cropsId': cropsId, 'companionCropsId': companionCropsId, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "CompanionsEditResponse"; TypeContext? context = _ctx; } // @Route("/companions/{Id}", "PUT") // @DataContract class CompanionsEdit 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") int? companionCropsId; CompanionsEdit({this.id,this.tenantsId,this.zonesId,this.cropsId,this.companionCropsId}); CompanionsEdit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; zonesId = json['zonesId']; cropsId = json['cropsId']; companionCropsId = json['companionCropsId']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'zonesId': zonesId, 'cropsId': cropsId, 'companionCropsId': companionCropsId }; createResponse() => CompanionsEditResponse(); getResponseTypeName() => "CompanionsEditResponse"; getTypeName() => "CompanionsEdit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'CompanionsEditResponse': TypeInfo(TypeOf.Class, create:() => CompanionsEditResponse()), 'CompanionsEdit': TypeInfo(TypeOf.Class, create:() => CompanionsEdit()), });