| GET | /growplans_results |
|---|
import 'package:servicestack/servicestack.dart';
// @DataContract
class GrowplansResultsLookup implements IConvertible
{
// @DataMember(Order=1)
int? id;
// @DataMember(Order=2)
int? growplansBoxesId;
// @DataMember(Order=3)
DateTime? plantDate;
// @DataMember(Order=4)
String? grid;
// @DataMember(Order=5)
double? height;
// @DataMember(Order=6)
double? plantPerSquare;
// @DataMember(Order=7)
int? cropsCylindersId;
// @DataMember(Order=8)
int? age;
// @DataMember(Order=9)
int? maxAge;
// @DataMember(Order=10)
int? growplansVarietiesId;
GrowplansResultsLookup({this.id,this.growplansBoxesId,this.plantDate,this.grid,this.height,this.plantPerSquare,this.cropsCylindersId,this.age,this.maxAge,this.growplansVarietiesId});
GrowplansResultsLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
growplansBoxesId = json['growplansBoxesId'];
plantDate = JsonConverters.fromJson(json['plantDate'],'DateTime',context!);
grid = json['grid'];
height = JsonConverters.toDouble(json['height']);
plantPerSquare = JsonConverters.toDouble(json['plantPerSquare']);
cropsCylindersId = json['cropsCylindersId'];
age = json['age'];
maxAge = json['maxAge'];
growplansVarietiesId = json['growplansVarietiesId'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'growplansBoxesId': growplansBoxesId,
'plantDate': JsonConverters.toJson(plantDate,'DateTime',context!),
'grid': grid,
'height': height,
'plantPerSquare': plantPerSquare,
'cropsCylindersId': cropsCylindersId,
'age': age,
'maxAge': maxAge,
'growplansVarietiesId': growplansVarietiesId
};
getTypeName() => "GrowplansResultsLookup";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
'GrowplansResultsLookup': TypeInfo(TypeOf.Class, create:() => GrowplansResultsLookup()),
});
Dart GrowplansResultsLookup DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /growplans_results HTTP/1.1 Host: sfgboxapi.dev.scadsoftware.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{Unable to show example output for type 'IEnumerable`1' using the custom 'other' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IEnumerable`1[sfgboxapi.ServiceModel.GrowplansResultsLookupResponse]'. Reason: Cannot create an instance of an interface.