| All Verbs | /TestLC |
|---|
import 'package:servicestack/servicestack.dart';
class TestLC implements IConvertible
{
/**
* Optional: LC address
*/
// @ApiMember(Description="Optional: LC address")
String? LCAddress;
/**
* Optional: name of the stockroom where the area is located
*/
// @ApiMember(Description="Optional: name of the stockroom where the area is located")
String? StockroomName;
TestLC({this.LCAddress,this.StockroomName});
TestLC.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
LCAddress = json['LCAddress'];
StockroomName = json['StockroomName'];
return this;
}
Map<String, dynamic> toJson() => {
'LCAddress': LCAddress,
'StockroomName': StockroomName
};
getTypeName() => "TestLC";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
'TestLC': TypeInfo(TypeOf.Class, create:() => TestLC()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /TestLC HTTP/1.1
Host: clouddemo.pickeos.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
LCAddress: String,
StockroomName: String
}