GET | /RestApi/recycle-bin/items/{id}/validaterestore |
---|
import 'package:servicestack/servicestack.dart';
abstract class RecycelBinItemRequestBase
{
String? Id;
RecycelBinItemRequestBase({this.Id});
RecycelBinItemRequestBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id
};
getTypeName() => "RecycelBinItemRequestBase";
TypeContext? context = _ctx;
}
class ModalMessageProxy implements IConvertible
{
bool? IsRecoverable;
String? HeaderText;
String? BodyText;
String? ActionButtonText;
bool? HasCancelButton;
ModalMessageProxy({this.IsRecoverable,this.HeaderText,this.BodyText,this.ActionButtonText,this.HasCancelButton});
ModalMessageProxy.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
IsRecoverable = json['IsRecoverable'];
HeaderText = json['HeaderText'];
BodyText = json['BodyText'];
ActionButtonText = json['ActionButtonText'];
HasCancelButton = json['HasCancelButton'];
return this;
}
Map<String, dynamic> toJson() => {
'IsRecoverable': IsRecoverable,
'HeaderText': HeaderText,
'BodyText': BodyText,
'ActionButtonText': ActionButtonText,
'HasCancelButton': HasCancelButton
};
getTypeName() => "ModalMessageProxy";
TypeContext? context = _ctx;
}
class GetRecycleBinItemValidation extends RecycelBinItemRequestBase implements IConvertible
{
GetRecycleBinItemValidation();
GetRecycleBinItemValidation.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "GetRecycleBinItemValidation";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'RecycelBinItemRequestBase': TypeInfo(TypeOf.AbstractClass),
'ModalMessageProxy': TypeInfo(TypeOf.Class, create:() => ModalMessageProxy()),
'GetRecycleBinItemValidation': TypeInfo(TypeOf.Class, create:() => GetRecycleBinItemValidation()),
});
Dart GetRecycleBinItemValidation 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 /RestApi/recycle-bin/items/{id}/validaterestore HTTP/1.1 Host: www.asg.com.au Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"isRecoverable":false,"headerText":"String","bodyText":"String","actionButtonText":"String","hasCancelButton":false}