GET | /RestApi/sitefinity/related-data/parent-items |
---|
import 'package:servicestack/servicestack.dart';
class ChildItemMessage implements IConvertible
{
String? ChildItemId;
String? ChildItemType;
String? ChildProviderName;
String? Filter;
String? Order;
int? Skip;
int? Take;
ChildItemMessage({this.ChildItemId,this.ChildItemType,this.ChildProviderName,this.Filter,this.Order,this.Skip,this.Take});
ChildItemMessage.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ChildItemId = json['ChildItemId'];
ChildItemType = json['ChildItemType'];
ChildProviderName = json['ChildProviderName'];
Filter = json['Filter'];
Order = json['Order'];
Skip = json['Skip'];
Take = json['Take'];
return this;
}
Map<String, dynamic> toJson() => {
'ChildItemId': ChildItemId,
'ChildItemType': ChildItemType,
'ChildProviderName': ChildProviderName,
'Filter': Filter,
'Order': Order,
'Skip': Skip,
'Take': Take
};
getTypeName() => "ChildItemMessage";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'ChildItemMessage': TypeInfo(TypeOf.Class, create:() => ChildItemMessage()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/sitefinity/related-data/parent-items HTTP/1.1 Host: www.asg.com.au Accept: application/json