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