/* Options: Date: 2025-12-06 09:54:24 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: FoodGardensEdit.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FoodGardensEditResponse implements IConvertible { // @DataMember(Order=1) int? id; // @DataMember(Order=2) int? tenantsId; // @DataMember(Order=3) String? name; // @DataMember(Order=4) String? description; // @DataMember(Order=6) ResponseStatus? responseStatus; FoodGardensEditResponse({this.id,this.tenantsId,this.name,this.description,this.responseStatus}); FoodGardensEditResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; name = json['name']; description = json['description']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'name': name, 'description': description, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "FoodGardensEditResponse"; TypeContext? context = _ctx; } // @Route("/food_gardens/{Id}", "PUT") // @DataContract class FoodGardensEdit 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") String? name; // @DataMember(Order=4) String? description; FoodGardensEdit({this.id,this.tenantsId,this.name,this.description}); FoodGardensEdit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; name = json['name']; description = json['description']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'name': name, 'description': description }; createResponse() => FoodGardensEditResponse(); getResponseTypeName() => "FoodGardensEditResponse"; getTypeName() => "FoodGardensEdit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'FoodGardensEditResponse': TypeInfo(TypeOf.Class, create:() => FoodGardensEditResponse()), 'FoodGardensEdit': TypeInfo(TypeOf.Class, create:() => FoodGardensEdit()), });